Skip to main content

A None field for Django.

Project description

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>

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

Uploaded Source

Built Distribution

django_nonefield-0.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-nonefield-0.3.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for django-nonefield-0.3.tar.gz
Algorithm Hash digest
SHA256 1b6daf4bc9288c790110270a547cfc7209ea92bd6afa586a71fc19940d3cc01f
MD5 28251f2fc4ea0186186fc220708fc349
BLAKE2b-256 9bfb5fb2654dccf969fac1a598d20904597a400ab413f63fee8442f734278a1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_nonefield-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 199191fd625d52f51093d97614684066ee123f1e6009523587e0261f2128d2d6
MD5 60d98034ae8cf6628ccc3eea94ca7f36
BLAKE2b-256 a435cc25141af5021c7cab7e6041968f6ff9083a8b28b34a5288832fb6f32b2d

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