summaryrefslogtreecommitdiff
path: root/procurement/admin_forms.py
AgeCommit message (Collapse)Author
2018-10-20Allow suppliers to have multiple representativesKyle McFarland
This adds a basic Representative model and allows for editing them in the admin interface both in the Suppliers admin panel for each supplier and in a new Representatives admin panel which allows bulk editing of all representatives. Currently multiple representatives are just listed in the component view as extra rows below the company row but it would probably make sense to add a view for viewing suppliers directly. The REST API has also been slightly modified to return a list of representatives for each supplier in the components endpoint, adding a suppliers endpoint would probably also be a good idea. Requires running: $ python manage.py migrate procurement 0002_add_representative To update the database for the new model, both forward and lossy reverse data migration is implemented in the migration.
2018-10-04Initial commit of the coding assignment base projectworkmai