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.utils.translation import gettext_lazy as _
from aleksis.core.mixins import CRUDMixin
from aleksis.core.mixins import ExtensibleModel
def isidentifier(value: str) -> bool:
return value.isidentifier()
class PersonalNote(models.Model):
class PersonalNote(ExtensibleModel):
""" 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.
"""
......@@ -38,7 +38,7 @@ class PersonalNote(models.Model):
]
class LessonDocumentation(CRUDMixin):
class LessonDocumentation(ExtensibleModel):
""" A documentation on a single lesson period. Non-personal, includes
the topic and homework of the lesson.
"""
......@@ -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. """
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