Commit Graph

24 Commits

Author SHA1 Message Date
Matthias 93a1bf165d
update the remaining docstrings 2022-05-28 18:06:23 +02:00
Matthias Mair e1d22f538d resort imports 2022-05-20 17:24:51 +02:00
Matthias ecccfbd546
Remove encoding header
Fixes #2996
2022-05-15 20:33:00 +02:00
Oliver a81ea01e8e Model introspection
- Find the class registered to the model (or log an error)
- Pass the api_url through to the frontend
2022-05-12 17:28:55 +10:00
Oliver e112d555d4 Simplify the various settings objects, to improve retrieval of 'parameters' from the base class
- Remove the GenericReferencedSettingsClass mixin
- Each subclass defines a very simple get_kwargs() method
- Now, at object level *and* class level we can perform lookup of settings and actually get proper data back
- Adds "model" option to setting (precursor of things to come)
2022-05-12 16:45:27 +10:00
Matthias ccefaade92
Add args back in to serializer 2022-05-06 00:48:20 +02:00
Matthias 164a8acf33
make genericref simpler 2022-05-05 01:31:19 +02:00
Matthias c684e7d5e0
Add generic serializer 2022-05-04 16:57:39 +02:00
Oliver Walters 75fa0bed26 Render "native value" in serializer 2022-05-01 20:13:58 +10:00
Matthias 06f6587050
add endpoint + buttons to mark a notification read 2021-11-29 01:08:06 +01:00
Matthias f9655f5eac
fix base message serializer 2021-11-29 00:17:00 +01:00
Matthias 7d71a04eaa
Add fields to serializer to resolve source / target refs 2021-11-28 01:17:14 +01:00
Matthias f2d0b06881
add read to api 2021-11-27 22:02:04 +01:00
Matthias dd44eb389f
add a notification message model
part of #2282
2021-11-27 16:02:23 +01:00
Matthias 1a6a26204e
make sure protected values are never exposed 2021-11-20 00:24:17 +01:00
Oliver e303b5a39b Catch for null value for settings choices 2021-11-09 22:37:50 +11:00
Oliver 8d7b73e2a8 Adds support for "multiple choice" field 2021-11-09 22:25:42 +11:00
Oliver 5df4374607 javascript for editing settings via API 2021-11-09 21:16:37 +11:00
Oliver 324335a620 Convert to "native value" in the serializer 2021-11-09 17:43:36 +11:00
Oliver 4433befbdc Add list of 'choices' (read only) to serializer
- Check that the specified value is one of the valid options (if provided)
2021-11-09 17:21:59 +11:00
Oliver 07851f0b2c Include 'setting type' in API data 2021-11-09 17:07:41 +11:00
Oliver cb583eb466 Add LIST endpoint for global settngs and user settings
- Read only, cannot create new settings
- User settings filters against the user making the request
2021-11-09 15:59:09 +11:00
Oliver Walters 4dff18e4a6 Remove common_currency model entirely
- A lot of views / pages / etc needed to be updated too
- Now uses django-money fields entirely
- Create a manual rate exchange backend (needs more work!)
2020-11-11 00:21:06 +11:00
Oliver Walters 9726ea4f99 Add serializer / API for currency objects 2019-09-07 19:18:18 +10:00