Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

The tiny library introducing CharField with unlimited maximum length

License

NotificationsYou must be signed in to change notification settings

nnseva/django-unlimited-char

Repository files navigation

Tests with Django v2-v3

Tests with Django v3-v4

Django-Unlimited-Char

The tiny library introducing CharField with unlimited maximum length.

Installation

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

Compatibility restrictions

NOTICE Not all database backends support this feature. At the moment this isPostgreSQL and SQLite. The Oracle backend supports such a field (not checked yet) partially only.

Using

fromdjango.dbimportmodelsfromunlimited_char.fieldsimportCharFieldclassMyModel(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 willrestrict the input only (formclean() etc). The directsave() will not restrict the field length.

About

The tiny library introducing CharField with unlimited maximum length

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp