mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
* Catch DoesNotExist error * Move notificationtable function to js file * Fix for custom metadata class - Previously only worked if a POST or PUT action was available on the endpoint - So, a ListAPIView endpoint would not actually work! - Adding in a BulkDelete mixin to a ListAPIView caused failure * Add unit test to ensure new OPTIONS metadata updates are checked * Expand functionality of the existing BulkDelete mixin - Allow deletion by custom filters - Allow each implementing class to implement custom filters - Adds more unit testing for BulkDelete mixin class * Add bulk delete operation for Notification API - Ensure users can only delete their *own* notifications * Improve notification tables / buttons / etc * Adds unit testing for bulk delete of notifications - Fixed API permissions for notifications list endpoint * Update BulkDelete operations for the StockItemTestResult table * Use filters parameter in attachments table to ensure that only correct attachments are deleted * JS linting * Fixes for unit tests
55 lines
800 B
YAML
55 lines
800 B
YAML
- model: auth.group
|
|
pk: 1
|
|
fields:
|
|
name: "Viewers"
|
|
|
|
- model: auth.group
|
|
pk: 2
|
|
fields:
|
|
name: "Engineers"
|
|
|
|
- model: auth.group
|
|
pk: 3
|
|
fields:
|
|
name: "Sales"
|
|
|
|
- model: auth.user
|
|
pk: 1
|
|
fields:
|
|
username: "sue_the_superuser"
|
|
is_superuser: true
|
|
|
|
- model: auth.user
|
|
pk: 2
|
|
fields:
|
|
username: "engineer_eddie"
|
|
groups:
|
|
- 2
|
|
is_active: true
|
|
is_staff: false
|
|
is_superuser: false
|
|
|
|
- model: auth.user
|
|
pk: 3
|
|
fields:
|
|
username: "alanallgroup"
|
|
first_name: "Alan"
|
|
last_name: "Allgroup"
|
|
is_active: false
|
|
is_staff: true
|
|
groups:
|
|
- 1
|
|
- 2
|
|
- 3
|
|
|
|
- model: auth.user
|
|
pk: 4
|
|
fields:
|
|
username: "sam"
|
|
first_name: "Samuel"
|
|
last_name: "Salesperson"
|
|
groups:
|
|
- 3
|
|
is_staff: true
|
|
is_superuser: true
|