Right.. I miss read the requirements.txt. Im new to django so started from a simple app base and building on top. On first look nothing broke when upgrading to 1.7. Ill check the docs you posted now.
On Tuesday, 28 July 2015 11:54:55 UTC+3, James Schneider wrote:
-- On Tuesday, 28 July 2015 11:54:55 UTC+3, James Schneider wrote:
Are you sure you're using 1.7? Your original error posting begs to differ:
Django Version:1.6.11
The particular portion of docs that you are reading is meant to show how various mixin's can be used together to address specific edge cases, but other generic classes exist that are much better suited for what you are trying to do. Follow the link I posted to see examples.
The only 'tricky' portion of what you are trying to do is to attach the Comment to the Post, which is easily handled by overriding the form_valid() method in a CreateView.
You may not even need to define a Model Form.
- James
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f1a549fc-adc8-481a-893e-166b2a7a8718%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment