AndrewIngram / django-extra-views

Django's class-based generic views are awesome, let's have more of them.
MIT License
1.39k stars 172 forks source link

Better documentation: describe usage in template #169

Closed PetrDlouhy closed 5 years ago

PetrDlouhy commented 6 years ago

I spent few hour figuring out, why inline formsets doesn't work. The cause was that I used {{ form }} instead of {{ formset }} in template. I didn't find any mention about this in the docs. This is worth of describing somewhere.

PetrDlouhy commented 6 years ago

The usage for WithInlinesViews is even more tricky. I wouldn't have a chance to guess it without the example in tests:

{{ form }}

{% for formset in inlines %}

{{ formset }}

{% endfor %}
sdolemelipone commented 5 years ago

Addressed in #178.