Commit graph

20 commits

Author SHA1 Message Date
Aurélien Delobelle
82d361e775 API supports Activity
- Add ActivitySerializer + tests.
- Add 'places' field to ActivityTemplateSerializer.
2017-09-04 16:24:34 +02:00
Aurélien Delobelle
f33028892f Add API tests for Event/Place/ActivityTag/ActivityTemplate models
This tests mainly cover cases whose API user is friendly.
Should be extended with illegal things.

ActivityTag, ActivityTemplate and Place models got tests for root and
specific-event instance.
2017-08-13 18:05:24 +02:00
Aurélien Delobelle
fc4930a49e Clean serializers and viewsets
Event-based urls
- Add viewset mixin 'EventUrlViewSetMixin' to get the event from the
'event_pk' url kwarg of a view.
- Add url serializer fields for object which can be accessed with a
root-level and/or event-specific url ('EventHyperlinked*Field).

Update viewsets and serializers to use these + clean inheritance
viewsets.
2017-08-13 18:05:24 +02:00
Aurélien Delobelle
cd4695c27a Add some __init__ modules.
They are pythonicly not necessary, but Django misses testcases and
migrations if they are not present.
2017-08-03 12:01:10 +02:00
Qwann
541939ea17 things moved or modified 2017-07-27 15:01:13 +02:00
Qwann
c9cdc67b4f creation_date field updated 2017-07-27 12:04:30 +02:00
Qwann
7bec90d7a4 todo added 2017-07-27 11:54:15 +02:00
Qwann
9362d4c1f0 EventSpecificSerializer is now a mixin 2017-07-27 11:50:47 +02:00
Qwann
9860a19f2d doc for future comportement 2017-07-26 15:41:20 +02:00
Qwann
fdce944820 typos 2017-07-26 13:11:58 +02:00
Qwann
be5a90cf67 EventSerializer field fixes 2017-07-25 19:00:12 +02:00
Qwann
d19e5978b6 EventSpecificSerializer provides event attribute 2017-07-25 18:54:34 +02:00
Qwann
3246552eba tests factorised 2017-07-25 14:02:57 +02:00
Qwann
d7ee270fbf activity template serializer added 2017-07-22 03:12:50 +02:00
Qwann
cd1ed08ca6 tag added to API 2017-07-22 02:09:31 +02:00
Qwann
36f038259b generic classes fixed 2017-07-22 02:09:11 +02:00
Qwann
48f9fd516d EventSpecificSerializer and EventSpecificViewSet defined 2017-07-22 00:56:30 +02:00
Qwann
92e8e374fd WIP 2017-07-21 17:03:33 +02:00
Qwann
faafbf0630 serializers started 2017-07-20 15:08:19 +02:00
Qwann
1924d9b81a fogot a file 2017-07-18 17:48:59 +02:00