parent
a664ad3328
commit
77841909fe
4 changed files with 21 additions and 6 deletions
|
@ -50,3 +50,7 @@ class Favorite(FedireadsModel):
|
|||
''' fav'ing a post '''
|
||||
user = models.ForeignKey('User', on_delete=models.PROTECT)
|
||||
status = models.ForeignKey('Status', on_delete=models.PROTECT)
|
||||
|
||||
class Meta:
|
||||
unique_together = ('user', 'status')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue