diff --git a/afat/migrations/0024_doctrines_and_settings.py b/afat/migrations/0024_doctrines_and_settings.py index 11f72fa0..72b540c5 100644 --- a/afat/migrations/0024_doctrines_and_settings.py +++ b/afat/migrations/0024_doctrines_and_settings.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.16 on 2024-11-07 23:59 +# Generated by Django 4.2.16 on 2024-11-08 16:42 # Django from django.db import migrations, models @@ -36,8 +36,8 @@ class Migration(migrations.Migration): "notes", models.TextField( blank=True, + default="", help_text="You can add notes about this doctrine here if you want. (optional)", - null=True, verbose_name="Notes", ), ), diff --git a/afat/models.py b/afat/models.py index b46e90c3..a960c6fd 100644 --- a/afat/models.py +++ b/afat/models.py @@ -394,7 +394,7 @@ class Doctrine(models.Model): # Doctrine notes notes = models.TextField( - null=True, + default="", blank=True, help_text=_( "You can add notes about this doctrine here if you want. (optional)" @@ -410,6 +410,15 @@ class Doctrine(models.Model): verbose_name=_("Is enabled"), ) + class Meta: # pylint: disable=too-few-public-methods + """ + FleetDoctrine :: Meta + """ + + verbose_name = _("Doctrine") + verbose_name_plural = _("Doctrines") + default_permissions = () + def __str__(self) -> str: """ String representation of the object @@ -420,15 +429,6 @@ def __str__(self) -> str: return str(self.name) - class Meta: # pylint: disable=too-few-public-methods - """ - FleetDoctrine :: Meta - """ - - verbose_name = _("Doctrine") - verbose_name_plural = _("Doctrines") - default_permissions = () - class Setting(SingletonModel): """