Adds model and beginning of boilerplate for tags
This commit is contained in:
parent
9c645c6ab6
commit
13b512b569
8 changed files with 57 additions and 3 deletions
|
@ -47,6 +47,13 @@ class Review(Status):
|
|||
super().save(*args, **kwargs)
|
||||
|
||||
|
||||
class Tag(FedireadsModel):
|
||||
''' freeform tags for books '''
|
||||
users = models.ManyToManyField('User')
|
||||
books = models.ManyToManyField('Book')
|
||||
name = models.CharField(max_length=140, unique=True)
|
||||
|
||||
|
||||
class Favorite(FedireadsModel):
|
||||
''' fav'ing a post '''
|
||||
user = models.ForeignKey('User', on_delete=models.PROTECT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue