Skip to main content

Django Color Field

Project description

X-Net Django Color Field

A color field for Django models and forms.

Installation

  1. pip install x_net_django_color_field
  2. Add x_net_django_color_field to INSTALLED_APPS

Usage

Consider the following model using a ColorField

from django.db import models
from x_net_django_color_field.models import ColorField

class CustomModel(models.Model):
    color = ColorField(verbose_name="Color")

Consider the following form using a ColorField

from django.forms import forms
from x_net_django_color_field.forms import ColorField

class CustomForm(forms.Form):
    color = ColorField(label="Color")

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

x-net-django-color-field-1.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

x_net_django_color_field-1.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file x-net-django-color-field-1.0.1.tar.gz.

File metadata

  • Download URL: x-net-django-color-field-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for x-net-django-color-field-1.0.1.tar.gz
Algorithm Hash digest
SHA256 82e8ada72d113b73d459e851669c49fbbd5e865ca9688c3a3d24585033ee12e7
MD5 d4595e1d4652de9a550b924712c1f85d
BLAKE2b-256 588210e3af36e8fbf57cf1f06f5210f8b876d14a25d604ce547acdefe27403f5

See more details on using hashes here.

File details

Details for the file x_net_django_color_field-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: x_net_django_color_field-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for x_net_django_color_field-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad89fc3426b7bddea09b047d79842bfad697c499adab69633850c7a5a38ae54d
MD5 b9da0d73185799cb50d6a2b681e2c779
BLAKE2b-256 2489727d1ad260792c088e37a39bee77c39924acc51b3c12031a36f1f975b813

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