Skip to content

Commit

Permalink
[FIX] Django style guide adherence
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeufer committed Nov 8, 2024
1 parent bfabc77 commit e88025b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions afat/migrations/0024_doctrines_and_settings.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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",
),
),
Expand Down
20 changes: 10 additions & 10 deletions afat/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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
Expand All @@ -420,15 +429,6 @@ def __str__(self) -> str:

return str(self.name)

Check warning on line 430 in afat/models.py

View check run for this annotation

Codecov / codecov/patch

afat/models.py#L430

Added line #L430 was not covered by tests

class Meta: # pylint: disable=too-few-public-methods
"""
FleetDoctrine :: Meta
"""

verbose_name = _("Doctrine")
verbose_name_plural = _("Doctrines")
default_permissions = ()


class Setting(SingletonModel):
"""
Expand Down

0 comments on commit e88025b

Please sign in to comment.