2👍
✅
You can reference it by its name (as a string) like so:
message = models.OneToOneField('Message', blank=True, null=True)
Source:stackexchange.com
2👍
You can reference it by its name (as a string) like so:
message = models.OneToOneField('Message', blank=True, null=True)