The tiny library introducing CharField with unlimited maximum length.
Stable version from the PyPi package repository
pip install django-unlimited-char
Last development version from the GitHub source version control system
pip install git+git://github.com/nnseva/django-unlimited-char.git
NOTICE Not all database backends support this feature. At the moment this is PostgreSQL and SQLite. The Oracle backend supports such a field (not checked yet) partially only.
from django.db import models
from unlimited_char.fields import CharField
class MyModel(models.Model):
name = CharField()
...
You can use this field anywhere the usual CharField is used.
You can assign a max_length attribute as for the original CharField, but this attribute will
restrict the input only (form clean()
etc). The direct save()
will not restrict the field length.