1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 12:59:36 +02:00

notes beta

This commit is contained in:
Sean Morley 2024-08-04 09:56:58 -04:00
parent 3f900bc41a
commit 7c2b0e927d
6 changed files with 126 additions and 30 deletions

View file

@ -116,6 +116,7 @@ class Note(models.Model):
User, on_delete=models.CASCADE, default=default_user_id)
name = models.CharField(max_length=200)
content = models.TextField(blank=True, null=True)
links = ArrayField(models.URLField(), blank=True, null=True)
date = models.DateField(blank=True, null=True)
is_public = models.BooleanField(default=False)
collection = models.ForeignKey('Collection', on_delete=models.CASCADE, blank=True, null=True)