{ "info": { "author": "Javier Cordero", "author_email": "jcorderomartinez@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "django-xadmin-extras\n=====================\n\nExtra features for `django-xadmin `_\n\nNew features:\n-------------\n\n * Form wizard class working like django form wizard.\n * Allow adding custom menu entries via AppConfig.\n * `django-hstore `_ support when editing objects.\n * Views for external apps:\n \n \t+ `django-celery `_\n \t+ `django-settings `_\n \t+ `django-mail-factory `_\n\n\nForm wizard\n------------\n\nIntegrate Django FormWizards with xadmin views:\n\nAny view using a wizard should inherit from FormWizardAdminView\n\n.. code:: python\n\n\tfrom xadmin_extras.wizard import FormWizardAdminView, SessionWizardViewMixin\n\n\tclass NotificateView(SessionWizardViewMixin, FormWizardAdminView):\n\t \"\"\"A wizard view working together with xadmin, using\n\t SessionWizard backend\n\t\n\t \"\"\"\n\t form_list = [SelectFilterForm, NotificateForm]\n\t form_template = 'admin/fbapps/notificate_form.html'\n\t title = 'FB Push notifications'\n\n\nOther wizard backends are available: SessionWizardViewMixin and CookieWizardViewMixin\n\nFor more info about Form wizard, see `django documentation `_\n\nTo register a view to be available at admin, with name and protected, use `register_view()`:\n\n.. code:: python\n\n\timport xadmin\n\txadmin.site.register_view(\n\t r'fbapps/notificate/$', NotificateView,\n\t name='fbapps_notification_view')\n\n\nCustom menu entries\n--------------------\n\nUsing an `AppConfig-like class `_ (available for Django 1.7), custom entries can be added for the menu of each App.\n\nCreate a file called `apps.py` at your app folder, create a class and edit `init_menu()`\n\n.. code:: python\n\n # coding=utf-8\n\n # from django.apps import AppConfig (commented for django 1.6)\n from xadmin_extras.apps import AdminAppMixin\n\n\n class FooConfig(AdminAppMixin):\n \"\"\"name and verbose_name are going to be used for django AppConfig too\n \n \"\"\"\n name = 'foo'\n verbose_name = 'Foo app.'\n icon = 'foo'\n\n def init_menu(self):\n \"\"\"Add custom menu entries to the menu displayed for this app\n\n Return a list of dicts, each dict will be a entry for the submenu of\n the app:\n {'url': '/admin/.../', 'icon': 'bolt', 'title': 'Custom'}\n also 'perm' and 'order' keys can be added.\n\n \"\"\"\n return [{\n 'url': '/admin/foo/notification/', 'icon': 'bolt',\n 'title': u'Send notifications', 'order': '', 'perm': None}]\n\n\n APP_CONFIG = FooConfig()\n\nNow, assign the app to each model you want to get grouped and register them\n\n.. code:: python\n\n import xadmin\n import .models as models\n\n class AppAdmin(object):\n app_config = AppConfig\n \n xadmin.site.register(models.Foo, AppAdmin)\n\n\nAfter that, you just need to extend CommAdminView (maybe you have already done this\nif you wanted to change menu style, site title, base template, etc.), with\nAppConfigViewMixin available at xadmin_extras.views\n\n.. code:: python\n\n import xadmin.views as views\n import xadmin_extras as views_extra\n\n xadmin.site.register(views.CommAdminView, views_extra.AppConfigViewMixin) \n\n\ndjango-hstore support\n----------------------\n\nAdd the widget ``XadminHStoreWidget`` to your form definition:\n\n.. code:: python\n\n\tfrom django_hstore.forms import DictionaryField\n\tfrom xadmin_extras.django_hstore.widgets import XAdminHStoreWidget\n\tfrom django import forms\n\t\n\t\n\tclass HStoreForm(forms.Form):\n\t\tdata = DictionaryField(widget=XadminHStoreWidget())\n\t\n\t\nExternal apps support\n----------------------\n\nApps with custom views are defined at ``ext`` folder\n\n\n**django-celery**\n\n\t.. code:: python\n\t\n\t\timport xadmin_extras.ext.celery as ext_celery\n\t\t\n\t\txadmin.site.register(\n\t\t\text_celery.celery_models.PeriodicTask, ext_celery.PeriodicTaskAdmin)\n\t\txadmin.site.register(\n\t\t\text_celery.celery_models.IntervalSchedule,\n\t\t\text_celery.IntervalScheduleAdmin)\n\t\txadmin.site.register(\n\t\t\text_celery.celery_models.CrontabSchedule,\n\t\t\text_celery.CrontabScheduleAdmin)\n\t\t\n\n**django-settings**\n\n\t.. code:: python\n\t\n\t\timport xadmin_extras.ext.settings as ext_settings\n\t\t\n\t\txadmin.site.register(ext_settings.models.Setting, ext_settings.SettingsAdmin)\n\n\n**django-mail-factory**\n\n\t(By default, the mails will be at URL: /admin/mails/)\n\t\n\t.. code:: python\n\t\n\t\tfrom xadmin.views import CommAdminView, filter_hook, FormAdminView\n\n\t\timport xadmin_extras.ext.mailfactory as ext_mailfactory\n\t\t\n\t\txadmin.site.register_view(\n \t\t\tr'^mails/$', ext_mailfactory.MailListView, name='mail_factory_list')\n\t\txadmin.site.register_view(\n \t\t\tr'^mails/(?P.*)/$',ext_mailfactory.MailFormView, name='mail_factory_form')\n\t\txadmin.site.register_view(\n \t\t\tr'^mails/(?P.*)/preview/(?P\\w+)/$',\n \t\t\text_mailfactory.MailPreviewMessageView, name='mail_factory_preview_message')\n\t\t\n\n\n\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/jneight/django-xadmin-extras", "keywords": null, "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "django-xadmin-extras", "package_url": "https://pypi.org/project/django-xadmin-extras/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-xadmin-extras/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jneight/django-xadmin-extras" }, "release_url": "https://pypi.org/project/django-xadmin-extras/0.15/", "requires_dist": null, "requires_python": null, "summary": "Extensions for django-xadmin", "version": "0.15" }, "last_serial": 1816469, "releases": { "0.10": [ { "comment_text": "", "digests": { "md5": "276681d351ab4cdfe93bf1aa184851bc", "sha256": "b7f8165ae2274c67a3eca1e02a7c17aa3fb8d2f9bf4d9f62adb70bf83f07d46c" }, "downloads": -1, "filename": "django-xadmin-extras-0.10.tar.gz", "has_sig": false, "md5_digest": "276681d351ab4cdfe93bf1aa184851bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20874, "upload_time": "2014-08-08T18:08:00", "url": "https://files.pythonhosted.org/packages/49/e6/1df9d0f9e8b4cca2b46f67f1a7732f2594cd196b76eb4a3d07b107678cf6/django-xadmin-extras-0.10.tar.gz" } ], "0.11": [ { "comment_text": "", "digests": { "md5": "2eaff4043b830ba8e03fe61ee3d33df5", "sha256": "9188083f11b3bb6cb39bf47f2ec064008cf636ba735d72bed831fcb6d6d6a81b" }, "downloads": -1, "filename": "django-xadmin-extras-0.11.tar.gz", "has_sig": false, "md5_digest": "2eaff4043b830ba8e03fe61ee3d33df5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25331, "upload_time": "2014-08-08T18:22:22", "url": "https://files.pythonhosted.org/packages/df/08/c3ac2d4f173c7200c9cc90b7acfcceb8f8205bb8bcd913d64d310338be5b/django-xadmin-extras-0.11.tar.gz" } ], "0.12": [ { "comment_text": "", "digests": { "md5": "8210a9c33c93e2f1812fea1df9927adc", "sha256": "9216128443c4b5341aafb651e50201effc910982da2ba307f0a9c46a19194446" }, "downloads": -1, "filename": "django-xadmin-extras-0.12.tar.gz", "has_sig": false, "md5_digest": "8210a9c33c93e2f1812fea1df9927adc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14809, "upload_time": "2014-08-13T16:40:44", "url": "https://files.pythonhosted.org/packages/7c/d1/b6f79f0afe99a73b7b0f102e975b33583f7f6ac67cbfdc3b4f6a85538a47/django-xadmin-extras-0.12.tar.gz" } ], "0.13": [ { "comment_text": "", "digests": { "md5": "36703dae85d11b05e6f33cf9d8c6664c", "sha256": "3e92fab13f9d4a42c7e951f0a21fb7b24a5cf63bca518826d33e0479b6b39fcf" }, "downloads": -1, "filename": "django-xadmin-extras-0.13.tar.gz", "has_sig": false, "md5_digest": "36703dae85d11b05e6f33cf9d8c6664c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15393, "upload_time": "2015-01-11T17:57:46", "url": "https://files.pythonhosted.org/packages/f2/63/f2d0e266deb4395204972bf799e480fc7873e67af6cdefe0614a4eeb4ca9/django-xadmin-extras-0.13.tar.gz" } ], "0.14": [ { "comment_text": "", "digests": { "md5": "866e541425ad2d82700b787649a56ad8", "sha256": "b5c661eb27ff48f96a18293d7aa1ce05e6cade9a7f2518f08d260683330bca3f" }, "downloads": -1, "filename": "django-xadmin-extras-0.14.tar.gz", "has_sig": false, "md5_digest": "866e541425ad2d82700b787649a56ad8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17111, "upload_time": "2015-01-12T07:44:19", "url": "https://files.pythonhosted.org/packages/8e/74/067df7ff8e3e5a890dc1958951857c08998544ecc842bbdc64c137d14139/django-xadmin-extras-0.14.tar.gz" } ], "0.15": [ { "comment_text": "", "digests": { "md5": "b29eb3a93a37ead1691b2d9997fc4439", "sha256": "4f7e9db86993bb81943a2589fc13036021641951e0b50bf341517c2602d8cd39" }, "downloads": -1, "filename": "django-xadmin-extras-0.15.tar.gz", "has_sig": false, "md5_digest": "b29eb3a93a37ead1691b2d9997fc4439", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15819, "upload_time": "2015-11-14T18:29:28", "url": "https://files.pythonhosted.org/packages/a1/f3/191ebe9248cf1500c5fdffb2a70694392731303928e4f96c607d4f66dd30/django-xadmin-extras-0.15.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b29eb3a93a37ead1691b2d9997fc4439", "sha256": "4f7e9db86993bb81943a2589fc13036021641951e0b50bf341517c2602d8cd39" }, "downloads": -1, "filename": "django-xadmin-extras-0.15.tar.gz", "has_sig": false, "md5_digest": "b29eb3a93a37ead1691b2d9997fc4439", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15819, "upload_time": "2015-11-14T18:29:28", "url": "https://files.pythonhosted.org/packages/a1/f3/191ebe9248cf1500c5fdffb2a70694392731303928e4f96c607d4f66dd30/django-xadmin-extras-0.15.tar.gz" } ] }