Skip to content

Commit

Permalink
Tweaks to model
Browse files Browse the repository at this point in the history
  • Loading branch information
CaitBarnard committed Dec 9, 2024
1 parent f749640 commit 91ee1a8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 17 additions & 0 deletions core/migrations/0016_alter_attrition_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.1.3 on 2024-12-09 15:54

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("core", "0015_attrition"),
]

operations = [
migrations.AlterModelOptions(
name="attrition",
options={"verbose_name_plural": "attrition"},
),
]
3 changes: 1 addition & 2 deletions core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from simple_history import register

from core.constants import MONTHS
from costcentre.models import CostCentre

from .metamodels import BaseModel

Expand Down Expand Up @@ -125,7 +124,7 @@ class Meta:
verbose_name_plural = "attrition"

cost_centre = models.ForeignKey(
CostCentre, on_delete=models.PROTECT, null=True, blank=True
"costcentre.CostCentre", on_delete=models.PROTECT, null=True, blank=True
)


Expand Down

0 comments on commit 91ee1a8

Please sign in to comment.