django.db.models BooleanField Example Code

BooleanField is a Python class within Django that maps Python code to a relational database Boolean column through the Django object-relational-mapper (ORM).

Django's documentation explains more about BooleanField and all of the other ORM column fields.

Note that BooleanField is defined within the django.db.models.fields module but is typically referenced from django.db.models rather than including the fields module reference.

Example 1 from dccnsys

dccnsys is a conference registration system built with Django. The code is open source under the MIT license.

dccnsys / wwwdccn/review / models.py

Example 2 from django-allauth

django-allauth (project website) is a Django library for easily adding local and social authentication flows to Django projects. It is open source under the MIT License.

django-allauth / allauth/account / models.py

Example 3 from django-axes

django-axes (project documentation and PyPI package information is a code library for Django projects to track failed login attempts against a web application. The goal of the project is to make it easier for you to stop people and scripts from hacking your Django-powered website.

The code for django-axes is open source under the MIT license and maintained by the group of developers known as Jazzband.

django-axes / axes/migrations / 0002_auto_20151217_2044.py