Posts by Higor Rossato • 111 points
2 posts
-
0
votes1
answer95
viewsA: Django ORM to select with group by
I think you could use it aggregate right after your annontate as shown in documentation. In your Model you would need to implement the class Meta and declare the ordering. py.models class…
-
1
votes1
answer59
viewsA: Generate a context from another instance in Createview
CreateView should be used only to create objects. To edit them you must user UpdateView and then pass the id of the object you want to edit. In the documentation of CreateView and UpdateView you can…