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, 1.9, 1.10, 1.11.

  • Python 2.7, 3.4, 3.5, 3.6

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>

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.2.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

django_nonefield-0.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django-nonefield-0.2.tar.gz
Algorithm Hash digest
SHA256 22c26a6e94cf7d99e5262508c47c6f3bc9334a2402b0a4ee5b6baf0739d3d252
MD5 56471d84bf6d1d81a60453d1afa7972b
BLAKE2b-256 8123fb615549dd066c04947a98d482a2eb96be020f6639fdab9d4a3c680aa6ec

See more details on using hashes here.

File details

Details for the file django_nonefield-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_nonefield-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3d9f11e80e5dc4d93bf7cab40cf33052021439e5a3fab1fb9727a4afde8f131
MD5 b67995e6d26ea0be318cc3b51655caf3
BLAKE2b-256 f46264bcf8a7021ea188e0cc758b48a0ab567ffbb9b399b3476f2b442791441b

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