# Django CharsLeft Widgets & Admin Mixin
Inspired from [django-charsleft-widget](https://github.com/timmyomahony/django-charsleft-widget/)
by [Timmy O'Mahony](https://github.com/timmyomahony)
and [django-charsleft-widget](https://github.com/bashu/django-charsleft-widget)
by [Basil Shubin](https://github.com/bashu)
*django-admin-charsleft* provides a simple way to add information to django's admin interface about the remaining
characters for both `CharField` and `TextField` inputs, relying on the `max_length` attribute.
*django-admin-charsleft* - as the name implies - is intended for the use inside [django-admin](), whereas the original
projects provide more generic widgets.
It plays nice with the default django-admin (>=1.9) - and also seamlessly integrates
with [django-slick-admin](https://github.com/palmbeach-interactive/django-slick-admin).
### Screenshot

### Installation
Using the latest version from PyPI:
pip install django-admin-charsleft
Using this GitHub repository:
pip install -e "git://github.com/palmbeach-interactive/django-admin-charsleft.git#egg=django-admin-charsleft"
Then add `charsleft` to `INSTALLED_APPS`.
### Usage
#### As Admin Mixin
*django-admin-charsleft* provides a `CharsLeftAdminMixin` class that can be used to extend your admin classes:
from charsleft.admin import CharsLeftAdminMixin
@admin.register(MyModel)
class MyModelAdmin(CharsLeftAdminMixin, admin.ModelAdmin):
...
The mixin can be used on `admin.ModelAdmin` and as well on `admin.TabularInline` and `admin.StackedInline`.
Inspired from [django-charsleft-widget](https://github.com/timmyomahony/django-charsleft-widget/)
by [Timmy O'Mahony](https://github.com/timmyomahony)
and [django-charsleft-widget](https://github.com/bashu/django-charsleft-widget)
by [Basil Shubin](https://github.com/bashu)
*django-admin-charsleft* provides a simple way to add information to django's admin interface about the remaining
characters for both `CharField` and `TextField` inputs, relying on the `max_length` attribute.
*django-admin-charsleft* - as the name implies - is intended for the use inside [django-admin](), whereas the original
projects provide more generic widgets.
It plays nice with the default django-admin (>=1.9) - and also seamlessly integrates
with [django-slick-admin](https://github.com/palmbeach-interactive/django-slick-admin).
### Screenshot

### Installation
Using the latest version from PyPI:
pip install django-admin-charsleft
Using this GitHub repository:
pip install -e "git://github.com/palmbeach-interactive/django-admin-charsleft.git#egg=django-admin-charsleft"
Then add `charsleft` to `INSTALLED_APPS`.
### Usage
#### As Admin Mixin
*django-admin-charsleft* provides a `CharsLeftAdminMixin` class that can be used to extend your admin classes:
from charsleft.admin import CharsLeftAdminMixin
@admin.register(MyModel)
class MyModelAdmin(CharsLeftAdminMixin, admin.ModelAdmin):
...
The mixin can be used on `admin.ModelAdmin` and as well on `admin.TabularInline` and `admin.StackedInline`.
Release files for django-admin-charsleft 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-admin-charsleft-0.0.5.tar.gz | 5.1 kB | Details |
Release files / django-admin-charsleft-0.0.5.tar.gz
| Download URL | django-admin-charsleft-0.0.5.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecddbb4f9557caa3c881d6c33aef8bb10e40c9ec14d4d98d1345677afe887d13
|
|
BLAKE2b-256 checksum How to use checksums |
97ca3943c53e5bea94f8c3e186f2babea9e1e7238aae39a9e3641e103ee02597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |