djangosnippets.org: Latest snippets tagged with 'generic-view'https://djangosnippets.org/tags/generic-view/2015-06-19T16:37:52.845480-05:00Combined CreateView and UpdateView
2015-06-19T16:37:52.845480-05:00dannygalehttps://djangosnippets.org/snippets/10503/<p>By combining the CreateView and UpdateView, you can significantly reduce repetition when processing complex forms (for example, with multiple inline formsets), by only writing the get_context_data and form_valid functions once.</p>
<p>This class can be used just like a normal CreateView or UpdateView. </p>
<p>Note that if you're trying to use it …</p>
Freely redistributableGeneric object_detail view filterable by multiple url values
2011-05-16T16:07:00.143818-05:00jlorichhttps://djangosnippets.org/snippets/2436/<p>This view acts as an extension to the object_detail generic view in django.views.generic.object_list. The standard generic view can only filter the queryset by object_id or slug; this view allows you to filter by any parameter you like, as well as multiple parameters.</p>
<p>The usage is the same as the standard …</p>
Freely redistributableintegrated jinja2 which could use generic view ,my djangojinja2.py
2009-12-29T13:08:30.036099-06:00jasongreenhttps://djangosnippets.org/snippets/1844/<p>I tried a few snippets of integrated jinja2 in django, which provided ?.render_to_string and ?.render_to_response in the way of jinja2. <strong>But those snippets could not use the generic view</strong>, because of the generic views is use default django template. so i write this snippet which could use generic view, …</p>
Freely redistributableajax form handler generic view
2008-10-26T09:33:10.229820-05:00amituhttps://djangosnippets.org/snippets/1157/<p>Some ajax heavy apps require a lot of views that are merely a wrapper around the form. This generic view can be used for them. </p>
Freely redistributable