Open
Description
The equipment model has an institution but it would also be useful to record the manufacturer. This will involve:
- Changing the Equipment model in
battDB.models
to add a field for manufacturer.- The field should not be mandatory.
- The manufacturer should be a Foreignkey relationship to
common.Org
. - The orgs should be limited to those which have
is_mfg_equip==True
. (Search forlimit_choices_to
inbattDB.models
to see how this could be implemented) - Create the necessary migration after making all the changes to the model.
- Updating the Equipment form in
battDB.forms
so there is another field to choose the manufacturer. - Updating the Equipment detail view in
battDB.views
so the manufacturer is displayed. - Update the unit tests in
tests.battDB.test_models
and possiblytests.battDB.test_views
to reflect the changes made.
Aha! Link: https://imperial-college-ict.aha.io/requirements/RSE-132-24