Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
examples
scripts
src/nonefield
.coveragerc
.gitignore
.hgignore
CHANGELOG.rst
LICENSE_GPL2.0.txt
LICENSE_LGPL_2.1.txt
MANIFEST.in
README.rst
TODOS.rst
pytest.ini
runtests.py
setup.py

README.rst

django-nonefield

django-nonefield is a None field for Django.

Prerequisites

  • Django 1.8, 1.9, 1.10, 1.11, 2.0, 2.1.
  • Python 2.7, 3.5, 3.6, 3.7

Installation

  1. Install latest stable version from PyPI:

    pip install django-nonefield

    Or latest stable version from GitHub:

    pip install https://github.com/barseghyanartur/django-nonefield/archive/stable.tar.gz

    Or latest stable version from BitBucket:

    pip install https://bitbucket.org/barseghyanartur/django-fobi/get/stable.tar.gz
  2. Add nonefield to INSTALLED_APPS of the your projects' Django settings.

    INSTALLED_APPS = (
        # ...
        # None field
        'nonefield',
        # ...
    )

Usage

forms.py

from django import forms
from nonefield.fields import NoneField

class MyForm(forms.Form):

    name = forms.CharField(max_length=255)
    some_text = NoneField(initial='Lorem ipsum')

Examples

License

GPL 2.0/LGPL 2.1

Support

For any issues contact me at the e-mail given in the Author section.

Author

Artur Barseghyan <artur.barseghyan@gmail.com>

You can’t perform that action at this time.