You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having it in the migration is both non-standard practice, and makes it practically difficult to reference in other parts of the code, like in tests (hence the # See the `0015_machinetype.py` migration for which MachineTypes are created by default comments).
The list could e.g. be moved to one of the following:
Static field(s) on the MachineType model
Fixture file(s) - or, preferably, factory classes - which is the standard practice for default model instances
Having it in the migration is both non-standard practice, and makes it practically difficult to reference in other parts of the code, like in tests (hence the
# See the `0015_machinetype.py` migration for which MachineTypes are created by default
comments).The list could e.g. be moved to one of the following:
MachineType
modelInheritanceGroup
s andCommittee
sThe text was updated successfully, but these errors were encountered: