Skip to content
Snippets Groups Projects
Verified Commit 7d31b655 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Use ExtensibleModel

parent 3d1904c1
No related branches found
No related tags found
1 merge request!43Resolve "Make Alsijil work with current core"
from django.db import models from django.db import models
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from aleksis.core.mixins import CRUDMixin from aleksis.core.mixins import ExtensibleModel
def isidentifier(value: str) -> bool: def isidentifier(value: str) -> bool:
return value.isidentifier() return value.isidentifier()
class PersonalNote(models.Model): class PersonalNote(ExtensibleModel):
""" A personal note about a single person. Used in the class register to note """ A personal note about a single person. Used in the class register to note
absences, excuses and remarks about a student in a single lesson period. absences, excuses and remarks about a student in a single lesson period.
""" """
...@@ -38,7 +38,7 @@ class PersonalNote(models.Model): ...@@ -38,7 +38,7 @@ class PersonalNote(models.Model):
] ]
class LessonDocumentation(CRUDMixin): class LessonDocumentation(ExtensibleModel):
""" A documentation on a single lesson period. Non-personal, includes """ A documentation on a single lesson period. Non-personal, includes
the topic and homework of the lesson. the topic and homework of the lesson.
""" """
...@@ -61,7 +61,7 @@ class LessonDocumentation(CRUDMixin): ...@@ -61,7 +61,7 @@ class LessonDocumentation(CRUDMixin):
] ]
class PersonalNoteFilter(models.Model): class PersonalNoteFilter(ExtensibleModel):
""" A filter definition that can generate statistics on personal note texts. """ """ A filter definition that can generate statistics on personal note texts. """
identifier = models.CharField( identifier = models.CharField(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment