Skip to main content

A None field for Django.

Project description

django-nonefield is a None field for Django.

Prerequisites

  • Django 1.5, 1.6, 1.7, 1.8

  • Python 2.6.8+, 2.7, 3.3

Installation

  1. Install latest stable version from PyPI:

    $ pip install django-nonefield

    Or latest stable version from GitHub:

    $ pip install -e git+https://github.com/barseghyanartur/django-nonefield@stable

    Or latest stable version from BitBucket:

    $ pip install -e hg+https://bitbucket.org/barseghyanartur/django-nonefield@stable
  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>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-nonefield-0.1.tar.gz (20.5 kB view hashes)

Uploaded Source

Built Distribution

django_nonefield-0.1-py2-none-any.whl (7.4 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page