This commit is contained in:
relikd
2023-05-29 15:20:07 +02:00
commit 1380b156d8
126 changed files with 3612 additions and 0 deletions

15
app/base/models/note.py Executable file
View File

@@ -0,0 +1,15 @@
from django.db import models
from app.base.forms.fields import TextField
class Note(models.Model):
user = models.OneToOneField('Person', on_delete=models.CASCADE)
text = TextField('Notiz', blank=True)
class Meta:
verbose_name = 'Notiz'
verbose_name_plural = 'Notizen'
def __str__(self):
return self.text