{ "info": { "author": "Ruben Grill", "author_email": "ruben.grill@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=================\ndjango-bulk-admin\n=================\n\nDjango bulk admin enables you to bulk add, bulk edit, bulk upload and bulk select in django admin.\n\nView the screenshots below to get an idea of how django bulk admin does look like.\n\nRequires Django >= 1.7.\n\n\n===========\nQuick start\n===========\n\n1. Install with pip::\n\n $ pip install django-bulk-admin\n\n2. Add \"bulk_admin\" to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = (\n ...\n 'bulk_admin',\n )\n\n3. Inherit from ``bulk_admin.BulkModelAdmin`` instead of ``django.contrib.admin.ModelAdmin``::\n\n from django.contrib import admin\n from example_project import models\n\n import bulk_admin\n\n\n @admin.register(models.Image)\n class ImageAdmin(bulk_admin.BulkModelAdmin):\n search_fields = ('title',)\n\n\n @admin.register(models.Project)\n class ProjectAdmin(bulk_admin.BulkModelAdmin):\n raw_id_fields = ('images',)\n\n4. Enjoy!\n\n\n===========\nBulk Upload\n===========\n\nBy default, django bulk admin provides a bulk upload button for each field type that has an ``upload_to`` attribute, like ``FileField`` or ``ImageField``.\nIf you want to customize the provided buttons (or disable bulk upload at all), set ``bulk_upload_fields`` in the ``BulkAdminModel``::\n\n @admin.register(models.Image)\n class ImageAdmin(bulk_admin.BulkModelAdmin):\n bulk_upload_fields = ()\n\nWhen files are bulk uploaded, a model instance is created and saved for each file.\nIf there are required fields, django bulk admin tries to set unique values (uuid) which can be edited by the uploading user in the next step.\nFor setting custom values or to support non string fields that are required, override ``generate_data_for_file``::\n\n @admin.register(models.Image)\n class ImageAdmin(bulk_admin.BulkModelAdmin):\n\n def generate_data_for_file(self, request, field_name, field_file, index):\n if field_name == 'data':\n return dict(title=field_file.name)\n return super(ImageAdmin, self).generate_data_for_file(request, field_name, file, index)\n\n\n=======\nCaveats\n=======\n\n- No admin logs are generated for bulk operations\n\n================\nCustomize Inline\n================\n\nDjango bulk admin provides two inlines that are similar to those provided by django admin:\n\n- ``bulk_admin.TabularBulkInlineModelAdmin`` (which is the default)\n- ``bulk_admin.StackedBulkInlineModelAdmin``\n\nYou can configure them exactly like django admin one's::\n\n from django.contrib import admin\n from example_project import models\n\n import bulk_admin\n\n\n class ProjectInline(bulk_admin.StackedBulkInlineModelAdmin):\n model = models.Project\n raw_id_fields = ('images',)\n\n\n @admin.register(models.Image)\n class ImageAdmin(bulk_admin.BulkModelAdmin):\n search_fields = ('title',)\n\n\n @admin.register(models.Project)\n class ProjectAdmin(bulk_admin.BulkModelAdmin):\n raw_id_fields = ('images',)\n bulk_inline = ProjectInline\n\n\n===========\nScreenshots\n===========\n\n--------\nBulk add\n--------\n\n.. image:: https://raw.githubusercontent.com/purelabs/django-bulk-admin/master/screenshots/bulk_add_1.png\n.. image:: https://raw.githubusercontent.com/purelabs/django-bulk-admin/master/screenshots/bulk_add_2.png\n\n---------\nBulk edit\n---------\n\n.. image:: https://raw.githubusercontent.com/purelabs/django-bulk-admin/master/screenshots/bulk_edit_1.png\n\n-----------\nBulk upload\n-----------\n\n.. image:: https://raw.githubusercontent.com/purelabs/django-bulk-admin/master/screenshots/bulk_upload_1.png\n.. image:: https://raw.githubusercontent.com/purelabs/django-bulk-admin/master/screenshots/bulk_upload_2.png\n\n-----------\nBulk select\n-----------\n\n.. image:: https://raw.githubusercontent.com/purelabs/django-bulk-admin/master/screenshots/bulk_select_1.png\n.. image:: https://raw.githubusercontent.com/purelabs/django-bulk-admin/master/screenshots/bulk_select_2.png\n.. image:: https://raw.githubusercontent.com/purelabs/django-bulk-admin/master/screenshots/bulk_select_3.png", "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/purelabs/django-bulk-admin", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-bulk-admin", "package_url": "https://pypi.org/project/django-bulk-admin/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-bulk-admin/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/purelabs/django-bulk-admin" }, "release_url": "https://pypi.org/project/django-bulk-admin/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Django bulk admin enables you to bulk add, bulk edit, bulk upload and bulk select in django admin.", "version": "0.1.1" }, "last_serial": 1735530, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7e0b83daeb74813e0c51252ba17060f1", "sha256": "6e751697ee75681b6834811c4485428834f3305d1f4c62223ca5c37f7febd75d" }, "downloads": -1, "filename": "django-bulk-admin-0.1.tar.gz", "has_sig": false, "md5_digest": "7e0b83daeb74813e0c51252ba17060f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11677, "upload_time": "2015-09-18T14:53:03", "url": "https://files.pythonhosted.org/packages/5a/94/c78196f853807e1640dd29d296071fa065e874c1e26acfd74b63b1ac0bc5/django-bulk-admin-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5f8d1dcd765e3f7c9157ae608fd8f660", "sha256": "ec2c08d128a4b110bacc06f67a8906c73fe1ef2a84e216b1f5b9fd4efae6a3f2" }, "downloads": -1, "filename": "django-bulk-admin-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5f8d1dcd765e3f7c9157ae608fd8f660", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11846, "upload_time": "2015-09-23T21:52:20", "url": "https://files.pythonhosted.org/packages/8c/bb/9a488bae4481a85bed43953c17f823f03d628945b98cc3911dd1fd646fec/django-bulk-admin-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5f8d1dcd765e3f7c9157ae608fd8f660", "sha256": "ec2c08d128a4b110bacc06f67a8906c73fe1ef2a84e216b1f5b9fd4efae6a3f2" }, "downloads": -1, "filename": "django-bulk-admin-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5f8d1dcd765e3f7c9157ae608fd8f660", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11846, "upload_time": "2015-09-23T21:52:20", "url": "https://files.pythonhosted.org/packages/8c/bb/9a488bae4481a85bed43953c17f823f03d628945b98cc3911dd1fd646fec/django-bulk-admin-0.1.1.tar.gz" } ] }