Skip to main content

Hexadecimal Field for Django

Project description

Django-Hexadecimal-Field

Hexadecimal field in Django for hexadecimal inputs

Installation

Usage

Import the HexadecimalField from fields.py

from djangoHexadecimal.fields import HexadecimalField
from django.db import models

class SampleModel(model.Model):
    hex_num = HexadecimalField(max_length='25')

Note that user must specify max_length

Similarly , the user can define their own validators which will be appended to hexadecimal validator

from djangoHexadecimal.fields import HexadecimalField
from django.db import models

class SampleModel(model.Model):
    hex_num = HexadecimalField(max_length='25',validators=[custom_validator])

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

DjangoHexadecimalField-0.0.3.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

DjangoHexadecimalField-0.0.3-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

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