[Answered ]-Django use a model before its definition in another model

2👍

You can reference it by its name (as a string) like so:

message = models.OneToOneField('Message', blank=True, null=True)

Leave a comment