Joined November 2013
·

Michal Novotný

Czech Republic
·
·

Posted to Better Way To Initialize Django Forms over 1 year ago

That second snippet is really bad. Hard to read, contains a bug as rennerocha notes, not dry cause there are essentially two checks if the request is a POST request. Don't ever use it, please. The Django way is the correct one or use class based views.

Achievements
39 Karma
0 Total ProTip Views