Actually, I think he wants a custom serializer that has one of 2 get
arguments(start and end date) and then generates the desired json with
fields using the django aggregate methods
On Tue, 3 Jan 2017, 22:43 gordon, wrote:
> List_route or detail route decorators sounds like what you are looking
There are lots of temperature data for one day. For instance, there are
nearly 5000 records for 03 January. I want to get highest and lowest of
these records for one specific day.
4 Ocak 2017 Çarşamba 14:43:55 UTC+3 tarihinde Marco Silva yazdı:
>
> Actually, I think he wants a custom serializer
On a custom serializer field, (eg SerializerMethodField) use the django
aggregate functions for max and min
https://docs.djangoproject.com/en/1.10/topics/db/aggregation/
On Wed, 4 Jan 2017, 11:59 Burak Özdemir, wrote:
> There are lots of temperature data for one day. For instance, there are
> ne
Hi everyone,
I am trying to figure out how to remove authentication from a single view
within a ViewSet. I essentially want this endpoint to be public, but not
effect any other view in here.
In settings.py I have:
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'oauth2_provi