Oliver
970a5d5eed
Include API endpoints in OPTIONS metadata
2021-06-25 00:36:22 +10:00
Oliver
04374c71c2
Annotate models with their API list view
...
- It will make sense, trust me
2021-06-25 00:17:58 +10:00
Oliver
b273dc613b
Scratch that
2021-06-24 23:15:19 +10:00
Oliver
b350a971a4
Working on custom field info in metadata class
2021-06-24 13:12:46 +10:00
Oliver
9feef935f4
Readonly fields
2021-06-24 00:16:30 +10:00
Oliver
c8085ad39d
Skip nested objects
2021-06-24 00:13:40 +10:00
Oliver
9f3f07aff3
Refactor toot-toot
...
- Now can specify the "order" of fields
2021-06-24 00:06:27 +10:00
Oliver
1754af3d43
Adds ability to specify which fields are displayed
2021-06-24 00:00:20 +10:00
Oliver
e7bc53a548
Working on a 'update' form
...
- Fetch existing data from the API
2021-06-23 23:51:11 +10:00
Oliver
4009ec844f
Test fixes
2021-06-23 23:42:56 +10:00
Oliver
6162129e3d
Support choice field
2021-06-23 23:36:38 +10:00
Oliver
1a43198cb7
actually run tests, for a change
2021-06-23 23:28:32 +10:00
Oliver
96ecd2640a
Support email fields
2021-06-23 23:27:02 +10:00
Oliver
d77ca8aa3a
Support URL fields
2021-06-23 23:23:28 +10:00
Oliver
78232c2ca2
Refactorin'
2021-06-23 23:18:36 +10:00
Oliver
b71977bb6a
Add field support
...
- Support text field
- Support checkbox field
2021-06-23 22:59:27 +10:00
Oliver
66687a6915
Now with error messages!
2021-06-23 22:37:45 +10:00
Oliver
aa02377665
Updates for field rendering
2021-06-23 22:25:53 +10:00
Oliver
c387e1a6fc
Working on functions to construct the various form components
2021-06-23 22:11:26 +10:00
Oliver
0d9808fbb8
Adds 'constructForm' javascript function
...
- Skeleton only (for now!)
2021-06-23 21:41:19 +10:00
Oliver
2c1db2a902
Further tweaks
2021-06-23 21:40:09 +10:00
Oliver
b8a3117c83
Fix unit tests
2021-06-23 21:21:39 +10:00
Oliver
82a6ff7772
Adds unit testing for fancy new metadata class
2021-06-23 20:58:05 +10:00
Oliver
eaa5913c8c
Adds custom DRF metadata handler
...
- Limit available "actions" data to only what the user is allowed to do
2021-06-23 20:30:26 +10:00
Oliver
058e53459b
Add simple function for determining OPTIONS
2021-06-23 20:07:56 +10:00
Oliver
5e338dca3f
Merge pull request #1710 from SchrodingersGat/inventree-api-image-upload
...
Allow direct upload of images via the API
2021-06-23 11:54:01 +10:00
Oliver
36e6b9f164
Set allow_null flag on image fields
2021-06-23 11:40:37 +10:00
Oliver
5ba7aeaa27
Fixes:
...
- Use DRF ImageField, not FileField
- Ensure that permissions get updated correctly in 'test' mode
- Allow file upload in the APITester class
2021-06-23 10:28:21 +10:00
Oliver
a866001ffe
Bump API version to 6
2021-06-23 08:40:51 +10:00
Oliver
878f26c770
Enable upload of company image via the API
2021-06-23 08:39:06 +10:00
Oliver
f199feb8d9
Use the part detail API for uploading a new image
2021-06-23 08:34:45 +10:00
Oliver
b8e4b58df0
Catch potential error updating image that does not exist...
2021-06-22 22:23:27 +10:00
Oliver
2fc7c3d883
fix typo
2021-06-22 22:16:11 +10:00
Oliver
e29594811b
Allow direct upload of images via the API
2021-06-22 22:09:30 +10:00
Oliver
962badc36d
Merge pull request #1682 from matmair/order-modal-show-price
...
Order modal show price
2021-06-22 21:27:59 +10:00
Oliver
37cbb6f6b8
Merge pull request #1709 from SchrodingersGat/python-ci-fixes
...
Fixes for python integration
2021-06-22 21:15:30 +10:00
Oliver
3884ab0df2
Change workflow target
2021-06-22 20:58:29 +10:00
Oliver
691888ec1e
Fixes for python integration
2021-06-22 20:49:49 +10:00
Oliver
e0301c56fb
Merge pull request #1708 from SchrodingersGat/python-ci
...
Add workflow to build python bindings
2021-06-22 20:40:59 +10:00
Oliver
fcd38c16d8
Add workflow to ensure that the python bindings build whenever there's a push to master
2021-06-22 20:26:55 +10:00
Oliver
da311fbab7
Merge pull request #1707 from SchrodingersGat/order-api-fixes
...
Fixes for order API interface
2021-06-22 17:23:50 +10:00
Oliver
1456868d03
Add default values for line item serializers
...
- Once https://github.com/inventree/InvenTree/issues/1687 is fixed, remove default values
2021-06-22 17:03:21 +10:00
Oliver
4fe6562d29
PEP fixes
2021-06-22 16:43:49 +10:00
Oliver
26dd9c10a4
Fixes for SalesOrder API
2021-06-22 16:43:38 +10:00
Oliver
3fa3ce06a1
Fixes for PurchaseOrder API interface
...
- Allow DELETE endpoint for PurchaseOrder
- Remove 'read_only' attribute for 'reference' field
- Add extra functionality to API test class
- Add unit testing
2021-06-22 16:28:42 +10:00
Oliver
061a120af2
Merge pull request #1705 from SchrodingersGat/part-validation
...
API Validation fixes
2021-06-22 13:39:05 +10:00
Oliver
979ef674d6
Update data for unit test fixtures
2021-06-22 13:24:03 +10:00
Oliver
eae9ff7d1d
More unit test fixes
2021-06-22 11:54:18 +10:00
Oliver
df7b0c961d
Merge pull request #1706 from SchrodingersGat/build-item-sorting
...
Bug fix for build order allocation sorting
2021-06-22 11:08:31 +10:00
Oliver
650d31ae32
Remove debug statements
2021-06-22 10:43:00 +10:00