Add following as a related_name for followers.
This commit is contained in:
parent
fc1ed99efa
commit
8cbca4229f
3 changed files with 22 additions and 2 deletions
|
@ -38,7 +38,8 @@ class User(AbstractUser):
|
|||
'self',
|
||||
symmetrical=False,
|
||||
through='UserRelationship',
|
||||
through_fields=('user_subject', 'user_object')
|
||||
through_fields=('user_subject', 'user_object'),
|
||||
related_name='following'
|
||||
)
|
||||
favorites = models.ManyToManyField(
|
||||
'Status',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue