A simple Django app that allow the use of Nullable char field.
Project description
This app is a collection of a widget, form field and db field that allows to have a nullable charfield inside django.
Quick start
Add “nullablecharfield” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'nullablecharfield', )
Use in your model CharNullField from nullablecharfield.db.models.fields
You should set null=True in the fields that you want to make nullable, like this:
from django.db import models from nullablecharfield.db.models.fields import CharNullField class Person(models.Model): first_name = CharNullField(max_length=30, null=True) last_name = CharNullField(max_length=30, null=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-nullablecharfield-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e231bfcf3da806db9a1ab70ae1ccf2e785e6dbb3fcf7f724d6a51a02697aa2c0 |
|
MD5 | 864041d3411363684b56bd008703c0ce |
|
BLAKE2b-256 | f7375fb3b4bece2ef127c6abe4b3b0e97780ff6e3c697fae6c4ff121f486af34 |