Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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


Release history Release notifications

This version
History Node

0.2

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_nonefield-0.2-py3-none-any.whl (8.6 kB) Copy SHA256 hash SHA256 Wheel 3.5 May 17, 2017
django-nonefield-0.2.tar.gz (21.6 kB) Copy SHA256 hash SHA256 Source None May 17, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page