Skip to content
Snippets Groups Projects
Verified Commit 43daa28a authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Update base clases for extensible models

ExtensibleModel is now an abstract base model.
parent 2546baf7
No related branches found
No related tags found
1 merge request!129Let model extensions define new fields
......@@ -26,7 +26,7 @@ class Migration(migrations.Migration):
options={
'ordering': ['short_name', 'name'],
},
bases=(models.Model, aleksis.core.mixins.ExtensibleModel),
bases=(aleksis.core.mixins.ExtensibleModel,),
),
migrations.CreateModel(
name='School',
......@@ -98,7 +98,7 @@ class Migration(migrations.Migration):
options={
'ordering': ['last_name', 'first_name'],
},
bases=(models.Model, aleksis.core.mixins.ExtensibleModel),
bases=(aleksis.core.mixins.ExtensibleModel,),
),
migrations.AddField(
model_name='group',
......
......@@ -64,7 +64,7 @@ class SchoolTerm(models.Model):
verbose_name_plural = _("School terms")
class Person(models.Model, ExtensibleModel):
class Person(ExtensibleModel):
""" A model describing any person related to a school, including, but not
limited to, students, teachers and guardians (parents).
"""
......@@ -159,7 +159,7 @@ class Person(models.Model, ExtensibleModel):
return self.full_name
class Group(models.Model, ExtensibleModel):
class Group(ExtensibleModel):
"""Any kind of group of persons in a school, including, but not limited
classes, clubs, and the like.
"""
......
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