To answer the unanswered q's:
Meta is where you define things about the class, but are not in the
class. If you can imagine a space created that *all* classes would
need, mine as well as yours, this is in Meta. It's "Meta". IE. How
does this class sort? Should a couple of fields be "unique togethe
Add function get() and post() to the view class. Code is near to same not
class view
6 січ. 2015 18:45, користувач "Brad Rice" написав:
>
> When I was working with formsets, it seemed to me best to just use a
single UpdateView with post and get functions defined rather than having a
separate Cre
Two Scoops of Django is definitely the book you are looking for. I don't know
if it's out for 1.7 yet, but I purchased the book for Django 1.6 and it covers
l of the best practices that you won't read about just from the Django docs.
--
You received this message because you are subscribed to t
When I was working with formsets, it seemed to me best to just use a single
UpdateView with post and get functions defined rather than having a
separate CreateView class. Seemed to handle both create and update ok.
On Tuesday, January 6, 2015 9:39:49 AM UTC-5, Sergiy Khohlov wrote:
>
> Diff is s
Diff is simple : UpdateView is using for changing already created object.
CreateView is using for creating new object.
I have few simpleast class for your request. But I have not commented
yet.
Many thanks,
Serge
+380 636150445
skype: skhohlov
On Tue, Jan 6, 2015 at 3:49 PM, Brad Rice wrote
Does anyone have a recommendation for intermediate reading to understand
Class Based Views? It seems most of the Django books were written when
function based views were prevalent. I'm still having trouble understanding
what the differences are between CreateView and UpdateView and what Meta is
6 matches
Mail list logo