1👍
✅
It makes more sense here to add a ManyToManyField
[Django-doc] in your CustomUser
, so:
class CustomUser(models.Model):
# …
favorites = models.ManyToManyField(
'self',
symmetrical=False,
related_name='fans'
)
Source:stackexchange.com