Add the add item functionality. Also enforce a default value for item-type on...
Add the add item functionality. Also enforce a default value for item-type on forms. While the API allows for items without an item-type, the form's handling of it was inconsistant. Until we have a use case for items without an item type, a default is enforced.
Showing
- django/website/hid/constants.py 9 additions, 0 deletionsdjango/website/hid/constants.py
- django/website/hid/tests/add_edit_item_view_tests.py 132 additions, 20 deletionsdjango/website/hid/tests/add_edit_item_view_tests.py
- django/website/hid/views/item.py 84 additions, 33 deletionsdjango/website/hid/views/item.py
Please register or sign in to comment