{ "info": { "author": "Andrew Ingram", "author_email": "andy@andrewingram.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Programming Language :: Python" ], "description": "django-extra-views - Refactored to Vanilla style\n================================================\n\nDjango's class-based generic views are great, they let you accomplish a large number of web application design patterns in relatively few lines of code. They do have their limits though, and that's what this library of views aims to overcome.\n\n.. image:: https://api.travis-ci.org/AndrewIngram/django-extra-views.png?branch=master\n :target: https://travis-ci.org/AndrewIngram/django-extra-views\n\n.. image:: https://pypip.in/d/django-extra-views/badge.png\n :target: https://crate.io/packages/django-extra-views/\n\nInstallation\n------------\n\nInstalling from github. ::\n\n pip install -e git://github.com/tomchristie/django-extra-views.git#egg=django-extra-views\n\n.. _`Documentation`: https://django-extra-views.readthedocs.org/en/latest/\n\nFeatures so far\n------------------\n\n- FormSet and ModelFormSet views - The formset equivalents of FormView and ModelFormView.\n- InlineFormSetView - Lets you edit formsets related to a model (uses inlineformset_factory)\n- GenericInlineFormSetView, the equivalent of InlineFormSetView but for GenericForeignKeys\n- CreateWithInlinesView and UpdateWithInlinesView - Lets you edit a model and its relations\n- Support for generic inlines in CreateWithInlinesView and UpdateWithInlinesView\n\nNotes\n-----\n\n- NamedFormsetMixin removed - context behavior baked directly into views, with ``inline_context_names`` and ``formset_context_name``.\n- Removed ``MultiFormView``, ``SearchableMixin``, ``SortableListMixin``, ``CalendarMonthView``.\n- The ``InlineFormSet`` and ``GenericFormSet`` classes are now just regular classes, not views.\n\nStill to do\n-----------\n\nAdding support for pagination in ModelFormSetView and its derivatives should now be simpler.\n\nExamples\n--------\n\nDefining a FormSetView. ::\n\n from extra_views import FormSetView\n\n\n class AddressFormSet(FormSetView):\n form_class = AddressForm\n template_name = 'address_formset.html'\n\nDefining a ModelFormSetView. ::\n\n from extra_views import ModelFormSetView\n\n\n class ItemFormSetView(ModelFormSetView):\n model = Item\n template_name = 'item_formset.html'\n\nDefining a CreateWithInlinesView and an UpdateWithInlinesView. ::\n\n from extra_views import CreateWithInlinesView, UpdateWithInlinesView, InlineFormSet\n from extra_views.generic import GenericInlineFormSet\n\n\n class ItemInline(InlineFormSet):\n model = Item\n\n\n class TagInline(GenericInlineFormSet):\n model = Tag\n\n\n class CreateOrderView(CreateWithInlinesView):\n model = Order\n inlines = [ItemInline, TagInline]\n\n\n class UpdateOrderView(UpdateWithInlinesView):\n model = Order\n inlines = [ItemInline, TagInline]\n\n\n # Example URLs.\n urlpatterns = patterns('',\n url(r'^orders/new/$', CreateOrderView.as_view()),\n url(r'^orders/(?P\\d+)/$', UpdateOrderView.as_view()),\n )", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AndrewIngram/django-extra-views", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-ptree-extra-views", "package_url": "https://pypi.org/project/django-ptree-extra-views/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-ptree-extra-views/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/AndrewIngram/django-extra-views" }, "release_url": "https://pypi.org/project/django-ptree-extra-views/0.6.3/", "requires_dist": null, "requires_python": null, "summary": "Extra class-based views for Django", "version": "0.6.3" }, "last_serial": 1012545, "releases": { "0.6.3": [ { "comment_text": "", "digests": { "md5": "ad3b8aba3730a8682d02d65a7f296248", "sha256": "b470ae6dce437078e016b916f191b5ef4067180850e6ebfac2019038d235e3cb" }, "downloads": -1, "filename": "django-ptree-extra-views-0.6.3.zip", "has_sig": false, "md5_digest": "ad3b8aba3730a8682d02d65a7f296248", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22144, "upload_time": "2014-02-26T09:59:33", "url": "https://files.pythonhosted.org/packages/03/8f/20fd259182ff342590536f0a4248897ed2ab72f291ea4224439be1f87b46/django-ptree-extra-views-0.6.3.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ad3b8aba3730a8682d02d65a7f296248", "sha256": "b470ae6dce437078e016b916f191b5ef4067180850e6ebfac2019038d235e3cb" }, "downloads": -1, "filename": "django-ptree-extra-views-0.6.3.zip", "has_sig": false, "md5_digest": "ad3b8aba3730a8682d02d65a7f296248", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22144, "upload_time": "2014-02-26T09:59:33", "url": "https://files.pythonhosted.org/packages/03/8f/20fd259182ff342590536f0a4248897ed2ab72f291ea4224439be1f87b46/django-ptree-extra-views-0.6.3.zip" } ] }