Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _bind(self):
super(MessageOptions, self)._bind()
from .models import Thread, Message
self.thread = ForeignKey(Thread)
self.thread.contribute_to_class(Thread, 'thread')
self.concrete_model = Message
self._gmail_other_fields['thread'] = self.thread