mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 12:59:36 +02:00
Add link field to collection and fix the visited counter in collection page
This commit is contained in:
parent
7d9bc16588
commit
1e61032692
8 changed files with 68 additions and 14 deletions
|
@ -117,6 +117,7 @@ class Collection(models.Model):
|
|||
updated_at = models.DateTimeField(auto_now=True)
|
||||
is_archived = models.BooleanField(default=False)
|
||||
shared_with = models.ManyToManyField(User, related_name='shared_with', blank=True)
|
||||
link = models.URLField(blank=True, null=True, max_length=2083)
|
||||
|
||||
|
||||
# if connected adventures are private and collection is public, raise an error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue