django-checkbox-normalize


Namedjango-checkbox-normalize JSON
Version 0.2.1 PyPI version JSON
download
home_page
SummaryIt's NOT a good design to put label after checkbox for BooleanField widget, so let's make it normal.
upload_time2023-09-15 09:46:19
maintainerSi KongZhi
docs_urlNone
authorSi KongZhi
requires_python
licenseMIT
keywords django admin extentions django checkbox normalize
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-checkbox-normalize

It's NOT a good design to put label after checkbox for BooleanField widget, so let's make it normal.


## Install

```shell
pip install django-checkbox-normalize
```

## Usage

### Settings

Add django_checkbox_normalize to settings.INSTALLED_APPS.

```python
INSTALLED_APPS = [
    ...
    'django_checkbox_normalize',
    ...
]
```

### Normalize for all model admins

Add `DJANGO_CHECKBOX_NORMALIZE_FOR_ALL = True` in pro/settings.py.

```python
DJANGO_CHECKBOX_NORMALIZE_FOR_ALL = True
```

### Normalize for one model admin

Add `DjangoCheckboxNormalizeAdmin` to one modeladmin.

```python
class MyModelAdmin(DjangoCheckboxNormalizeAdmin, admin.ModelAdmin):
    pass
```

#### django-checkbox-normalize preview

![django-checkbox-normalize preview](https://github.com/zencore-dobetter/pypi-images/raw/main/django-checkbox-normalize/django_checkbox_normalize.png)


## Releases

### v0.1.0

- First release.

### v0.1.1

- Fix BooleanField field style under small screen size.

### v0.1.2

- Add LICENSE file.

### v0.2.0

- Instead of using template rewrite, use js dynamic repairing method.
- Add DjangoCheckboxNormalizeAdmin to normalize one site.
- Add `DJANGO_CHECKBOX_NORMALIZE_FOR_ALL = True` to normalize for all modeladmins.

### v0.2.1

- Doc update.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "django-checkbox-normalize",
    "maintainer": "Si KongZhi",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "sikongzhi@zencore.cn",
    "keywords": "django admin extentions,django checkbox normalize",
    "author": "Si KongZhi",
    "author_email": "sikongzhi@zencore.cn",
    "download_url": "https://files.pythonhosted.org/packages/50/64/3360cea098ab05bdd06a2d6305f97189faa9cbf1fb6e1d9e196b402a9c08/django-checkbox-normalize-0.2.1.tar.gz",
    "platform": null,
    "description": "# django-checkbox-normalize\n\nIt's NOT a good design to put label after checkbox for BooleanField widget, so let's make it normal.\n\n\n## Install\n\n```shell\npip install django-checkbox-normalize\n```\n\n## Usage\n\n### Settings\n\nAdd django_checkbox_normalize to settings.INSTALLED_APPS.\n\n```python\nINSTALLED_APPS = [\n    ...\n    'django_checkbox_normalize',\n    ...\n]\n```\n\n### Normalize for all model admins\n\nAdd `DJANGO_CHECKBOX_NORMALIZE_FOR_ALL = True` in pro/settings.py.\n\n```python\nDJANGO_CHECKBOX_NORMALIZE_FOR_ALL = True\n```\n\n### Normalize for one model admin\n\nAdd `DjangoCheckboxNormalizeAdmin` to one modeladmin.\n\n```python\nclass MyModelAdmin(DjangoCheckboxNormalizeAdmin, admin.ModelAdmin):\n    pass\n```\n\n#### django-checkbox-normalize preview\n\n![django-checkbox-normalize preview](https://github.com/zencore-dobetter/pypi-images/raw/main/django-checkbox-normalize/django_checkbox_normalize.png)\n\n\n## Releases\n\n### v0.1.0\n\n- First release.\n\n### v0.1.1\n\n- Fix BooleanField field style under small screen size.\n\n### v0.1.2\n\n- Add LICENSE file.\n\n### v0.2.0\n\n- Instead of using template rewrite, use js dynamic repairing method.\n- Add DjangoCheckboxNormalizeAdmin to normalize one site.\n- Add `DJANGO_CHECKBOX_NORMALIZE_FOR_ALL = True` to normalize for all modeladmins.\n\n### v0.2.1\n\n- Doc update.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "It's NOT a good design to put label after checkbox for BooleanField widget, so let's make it normal.",
    "version": "0.2.1",
    "project_urls": null,
    "split_keywords": [
        "django admin extentions",
        "django checkbox normalize"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f05668b4e64ddc706ef70f23489e7e9e50ee4ac96f15ae3c6e4f86948af33baa",
                "md5": "ebf13fac67d08155e8ac9e5488ab950c",
                "sha256": "0715336d882b199cfa2c144eac0da397770725d0371413dade4bdd0ee0203522"
            },
            "downloads": -1,
            "filename": "django_checkbox_normalize-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ebf13fac67d08155e8ac9e5488ab950c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4742,
            "upload_time": "2023-09-15T09:46:17",
            "upload_time_iso_8601": "2023-09-15T09:46:17.708248Z",
            "url": "https://files.pythonhosted.org/packages/f0/56/68b4e64ddc706ef70f23489e7e9e50ee4ac96f15ae3c6e4f86948af33baa/django_checkbox_normalize-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50643360cea098ab05bdd06a2d6305f97189faa9cbf1fb6e1d9e196b402a9c08",
                "md5": "7ffd72536f9c4b480ab51f1d637e5e84",
                "sha256": "c04591557c6ff421e1b16dd520d62ced57302a8c5a0562c00e72ca565443a8e4"
            },
            "downloads": -1,
            "filename": "django-checkbox-normalize-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "7ffd72536f9c4b480ab51f1d637e5e84",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4131,
            "upload_time": "2023-09-15T09:46:19",
            "upload_time_iso_8601": "2023-09-15T09:46:19.050913Z",
            "url": "https://files.pythonhosted.org/packages/50/64/3360cea098ab05bdd06a2d6305f97189faa9cbf1fb6e1d9e196b402a9c08/django-checkbox-normalize-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-15 09:46:19",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "django-checkbox-normalize"
}
        
Elapsed time: 0.13173s