Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nnseva/django-unlimited-char
The tiny library introducing CharField with unlimited maximum length
https://github.com/nnseva/django-unlimited-char
django django-postgresql django-sqlite3 field postgresql sqlite3 unlimited-char
Last synced: about 1 month ago
JSON representation
The tiny library introducing CharField with unlimited maximum length
- Host: GitHub
- URL: https://github.com/nnseva/django-unlimited-char
- Owner: nnseva
- License: lgpl-3.0
- Created: 2020-05-26T16:50:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T07:53:37.000Z (almost 2 years ago)
- Last Synced: 2024-09-15T23:38:19.899Z (3 months ago)
- Topics: django, django-postgresql, django-sqlite3, field, postgresql, sqlite3, unlimited-char
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Tests with Django v2-v3](https://github.com/nnseva/django-unlimited-char/actions/workflows/test-django2-3.yml/badge.svg)](https://github.com/nnseva/django-unlimited-char/actions/workflows/test-django2-3.yml)
[![Tests with Django v3-v4](https://github.com/nnseva/django-unlimited-char/actions/workflows/test-django3-4.yml/badge.svg)](https://github.com/nnseva/django-unlimited-char/actions/workflows/test-django3-4.yml)
# Django-Unlimited-Char
The tiny library introducing CharField with unlimited maximum length.
## Installation
*Stable version* from the PyPi package repository
```bash
pip install django-unlimited-char
```*Last development version* from the GitHub source version control system
```bash
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 is
PostgreSQL and SQLite. The Oracle backend supports such a field (not checked yet) partially only.## Using
```python
from django.db import modelsfrom 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.