Discussion:
Hi guys o/ a question
Gerardo Cetzal
2018-09-14 19:28:42 UTC
Permalink
hi guys, a question, ammm, how is the correct way the use "aggregate sum",
what happens is that gives me a message a error

[image: Captura de pantalla 2018-09-14 a la(s) 10.39.42.png]
<about:invalid#zClosurez>

AttributeError: Got AttributeError when attempting to get a value for field
`fecha_ticket` on serializer `VentasSerializer`.

The serializer field might be named incorrectly and not match any attribute
or key on the `str` instance.

i don't know if this is the correct way.
thanks for read me
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
r***@gmail.com
2018-09-15 16:38:02 UTC
Permalink
Give please all code of your viewset
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gerardo Cetzal
2018-09-17 02:27:51 UTC
Permalink
they told me to use annonate and subquery

[image: Captura de pantalla 2018-09-16 a la(s) 21.26.28.png]
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...