Skip to content
Snippets Groups Projects
Commit 1acde1fc authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch...

Merge branch '125-alsijil-personalnote-extra_marks-fields-w340-null-has-no-effect-on-manytomanyfield' into 'master'

Resolve "alsijil.PersonalNote.extra_marks: (fields.W340) null has no effect on ManyToManyField"

Closes #125

See merge request !123
parents 70eb1057 791b0640
No related branches found
No related tags found
1 merge request!123Resolve "alsijil.PersonalNote.extra_marks: (fields.W340) null has no effect on ManyToManyField"
Pipeline #5340 passed
...@@ -64,7 +64,6 @@ class Migration(migrations.Migration): ...@@ -64,7 +64,6 @@ class Migration(migrations.Migration):
name="extra_marks", name="extra_marks",
field=models.ManyToManyField( field=models.ManyToManyField(
blank=True, blank=True,
null=True,
to="alsijil.ExtraMark", to="alsijil.ExtraMark",
verbose_name="Extra marks", verbose_name="Extra marks",
), ),
......
...@@ -81,9 +81,7 @@ class PersonalNote(ExtensibleModel, WeekRelatedMixin): ...@@ -81,9 +81,7 @@ class PersonalNote(ExtensibleModel, WeekRelatedMixin):
remarks = models.CharField(max_length=200, blank=True) remarks = models.CharField(max_length=200, blank=True)
extra_marks = models.ManyToManyField( extra_marks = models.ManyToManyField("ExtraMark", blank=True, verbose_name=_("Extra marks"))
"ExtraMark", null=True, blank=True, verbose_name=_("Extra marks")
)
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
if self.excuse_type: if self.excuse_type:
......
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