mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 12:59:36 +02:00
More sharing feartures and permissions
This commit is contained in:
parent
f2ba479c8e
commit
0664d9434c
5 changed files with 160 additions and 21 deletions
|
@ -81,6 +81,7 @@ class Collection(models.Model):
|
|||
end_date = models.DateField(blank=True, null=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
is_archived = models.BooleanField(default=False)
|
||||
shared_with = models.ManyToManyField(User, related_name='shared_with', blank=True)
|
||||
|
||||
|
||||
# if connected adventures are private and collection is public, raise an error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue