{ "info": { "author": "Alex Parinov", "author_email": "creafz@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=============================\ndjango-paginated-modelformset\n=============================\n\n.. image:: https://pypip.in/version/django-paginated-modelformset/badge.svg\n :target: https://pypi.python.org/pypi/django-paginated-modelformset/\n :alt: Latest Version\n\n.. image:: https://travis-ci.org/creafz/django-paginated-modelformset.svg?branch=master\n :target: https://travis-ci.org/creafz/django-paginated-modelformset\n\n.. image:: https://coveralls.io/repos/creafz/django-paginated-modelformset/badge.png?branch=master\n :target: https://coveralls.io/r/creafz/django-paginated-modelformset?branch=master\n\nAn attempt to add pagination to Django Model Formsets.\n\nRequirements\n------------\n* Python 2.6+ or Python 3\n* Django 1.6+\n\nInstallation\n------------\nInstall from PyPI\n::\n \n pip install django-paginated-modelformset\n\nUsage\n-----\n::\n\n from django.forms.models import modelformset_factory\n from paginated_modelformset import PaginatedModelFormSet\n from myapp.models import MyModel\n\n MyModelFormSet = modelformset_factory(MyModel, formset=PaginatedModelFormSet)\n\n # In addition to standard arguments, provide a number of items per page and a page number.\n formset = MyModelFormSet(per_page=25, page_num=1)\n\n\nPaginatedModelFormSet uses the same `Paginator `_ class that is used for standard pagination. A `Page `_ object is accessible as a page attribute of the formset and you can use it in templates like this:\n\n::\n\n
\n \n {% if formset.page.has_previous %}\n previous\n {% endif %}\n\n \n Page {{ formset.page.number }} of {{ formset.page.paginator.num_pages }}.\n \n\n {% if formset.page.has_next %}\n next\n {% endif %}\n \n
\n\n\n\n\nAlternatives\n------------\n\nSee this `StackOverflow question `_ for an alternative solution.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/creafz/django-paginated-modelformset/tarball/0.0.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/creafz/django-paginated-modelformset", "keywords": "django,form,formset,modelformset,pagination", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "django-paginated-modelformset", "package_url": "https://pypi.org/project/django-paginated-modelformset/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-paginated-modelformset/", "project_urls": { "Download": "https://github.com/creafz/django-paginated-modelformset/tarball/0.0.2", "Homepage": "https://github.com/creafz/django-paginated-modelformset" }, "release_url": "https://pypi.org/project/django-paginated-modelformset/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "An attempt to add pagination to Django Model Formsets.", "version": "0.0.2" }, "last_serial": 1376762, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "91cb5029f51f9b16f811cf1af69591c1", "sha256": "701a56c732134b6359a8e6697ef19f14c30bbf8cd8882aeb7b4ed9214bca0060" }, "downloads": -1, "filename": "django-paginated-modelformset-0.0.1.tar.gz", "has_sig": false, "md5_digest": "91cb5029f51f9b16f811cf1af69591c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4314, "upload_time": "2015-01-07T20:26:16", "url": "https://files.pythonhosted.org/packages/32/84/ccb458789f7b3cd033b9da8ad28b2772e14786f271d3b2a8634c449a0b1e/django-paginated-modelformset-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7bf279c1346822736d7161b2644a98a2", "sha256": "e76034b778f793a793ed81ed9b7ef104ce6cabd0139af18e5778f56f07a4f096" }, "downloads": -1, "filename": "django-paginated-modelformset-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7bf279c1346822736d7161b2644a98a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4375, "upload_time": "2015-01-09T13:34:10", "url": "https://files.pythonhosted.org/packages/80/6f/3711cf719a7594d9def244b522312e4ffe954de7b871ff335e216a51eccc/django-paginated-modelformset-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7bf279c1346822736d7161b2644a98a2", "sha256": "e76034b778f793a793ed81ed9b7ef104ce6cabd0139af18e5778f56f07a4f096" }, "downloads": -1, "filename": "django-paginated-modelformset-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7bf279c1346822736d7161b2644a98a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4375, "upload_time": "2015-01-09T13:34:10", "url": "https://files.pythonhosted.org/packages/80/6f/3711cf719a7594d9def244b522312e4ffe954de7b871ff335e216a51eccc/django-paginated-modelformset-0.0.2.tar.gz" } ] }