Skip to content

Add manufacturer field to equipment #263

Open
@dandavies99

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 for limit_choices_to in battDB.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 possibly tests.battDB.test_views to reflect the changes made.

Aha! Link: https://imperial-college-ict.aha.io/requirements/RSE-132-24

Metadata

Assignees

No one assigned

    Labels

    backendrelated to the backendenhancementNew feature or requestfrontendrelated to the frontendgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions