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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2

File details

Details for the file django-nonefield-0.1.tar.gz.

File metadata

File hashes

Hashes for django-nonefield-0.1.tar.gz
Algorithm Hash digest
SHA256 6c8d50663b43026bf00e50f7cd0cbf1203c8510f885605017e69b1664ee886b8
MD5 132e6a60d19fa0f3978970e226779eb9
BLAKE2b-256 9afa1b35355486549bc9d0e6ee0c6ae3e515e56d1b84cf2284f822841d2394d3

See more details on using hashes here.

File details

Details for the file django_nonefield-0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for django_nonefield-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 bd91dfa6afd54fbda200e0781194a568b4001bec91d066f8a6209dcb9edf3c36
MD5 9a5ae23e556aec7c1484f18c44fb70fa
BLAKE2b-256 c96db747a7bffcf00697cabde1fe185f8237c43c281245eec76d792c14d05253

See more details on using hashes here.

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