admin-tool-button


Nameadmin-tool-button JSON
Version 1.0.7a0 PyPI version JSON
download
home_pagehttps://github.com/bboogaard/admin_tool_button
SummaryExtra tool buttons for Django admin
upload_time2024-01-30 15:18:40
maintainer
docs_urlNone
authorBram Boogaard
requires_python
licenseMIT License
keywords django admin
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-admin-tool-button

Custom tool buttons for Django admin

## Rationale

Define extra actions buttons for Django admin.

## Support

Supports: Python 3.9.

Supports Django Versions: 4.2.7.

## Installation

```shell
$ pip install admin_tool_button
```

## Usage

Add `admin_tool_button` to `INSTALLED_APPS`. In your `admin.py` add your custom actions like so:

```python
from admin_tool_button.contrib.admin import ButtonActionAdmin


class MyAdmin(ButtonActionAdmin):

    button_actions = ['my_action']

    def my_action(self, request):
        # Perform your custom action
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bboogaard/admin_tool_button",
    "name": "admin-tool-button",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Django Admin",
    "author": "Bram Boogaard",
    "author_email": "padawan@hetnet.nl",
    "download_url": "https://files.pythonhosted.org/packages/a3/e7/c3a95128b9e315faa86627516d1b9392414bcc556bc56d7dcb54bccbf6fb/admin_tool_button-1.0.7a0.tar.gz",
    "platform": null,
    "description": "# django-admin-tool-button\n\nCustom tool buttons for Django admin\n\n## Rationale\n\nDefine extra actions buttons for Django admin.\n\n## Support\n\nSupports: Python 3.9.\n\nSupports Django Versions: 4.2.7.\n\n## Installation\n\n```shell\n$ pip install admin_tool_button\n```\n\n## Usage\n\nAdd `admin_tool_button` to `INSTALLED_APPS`. In your `admin.py` add your custom actions like so:\n\n```python\nfrom admin_tool_button.contrib.admin import ButtonActionAdmin\n\n\nclass MyAdmin(ButtonActionAdmin):\n\n    button_actions = ['my_action']\n\n    def my_action(self, request):\n        # Perform your custom action\n```\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Extra tool buttons for Django admin",
    "version": "1.0.7a0",
    "project_urls": {
        "Homepage": "https://github.com/bboogaard/admin_tool_button"
    },
    "split_keywords": [
        "django",
        "admin"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e2f6300fdbd8cc40292a2bd1e907d0cb4d6b16ad8604001924364e6b663c18bd",
                "md5": "c7302f7ae233a3c602b1be9b735bbdde",
                "sha256": "c28b6027a8db54dafd4219dcafa0a2e2e92a380893f0658b10187cc2717438b3"
            },
            "downloads": -1,
            "filename": "admin_tool_button-1.0.7a0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c7302f7ae233a3c602b1be9b735bbdde",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2936,
            "upload_time": "2024-01-30T15:18:38",
            "upload_time_iso_8601": "2024-01-30T15:18:38.437359Z",
            "url": "https://files.pythonhosted.org/packages/e2/f6/300fdbd8cc40292a2bd1e907d0cb4d6b16ad8604001924364e6b663c18bd/admin_tool_button-1.0.7a0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a3e7c3a95128b9e315faa86627516d1b9392414bcc556bc56d7dcb54bccbf6fb",
                "md5": "bc6ff6fab9985862078c1f3a3d2394f1",
                "sha256": "c72e9f9dd73977df3ae9fd0e3e585be36911c4515293d7fe573d230abf31d278"
            },
            "downloads": -1,
            "filename": "admin_tool_button-1.0.7a0.tar.gz",
            "has_sig": false,
            "md5_digest": "bc6ff6fab9985862078c1f3a3d2394f1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2358,
            "upload_time": "2024-01-30T15:18:40",
            "upload_time_iso_8601": "2024-01-30T15:18:40.442038Z",
            "url": "https://files.pythonhosted.org/packages/a3/e7/c3a95128b9e315faa86627516d1b9392414bcc556bc56d7dcb54bccbf6fb/admin_tool_button-1.0.7a0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-30 15:18:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bboogaard",
    "github_project": "admin_tool_button",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "admin-tool-button"
}
        
Elapsed time: 0.17424s