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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for DjangoHexadecimalField-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | caadbae4aec267b822868b10b9c57d61baad3fcf5c5e0304595a527cb3c458e8 |
|
MD5 | 874cc8442a94987a673daa6650713005 |
|
BLAKE2b-256 | 632e1ddb9f452394071a79bc9012f69893ad7a9b982efb6fd604bf556137c463 |
Close
Hashes for DjangoHexadecimalField-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 758f6165b957229618a187024bef7855e4e7ec0fd1461b05970a98e6f43a33d7 |
|
MD5 | a599a5e6fb0c456413e9048cf7cd9b5d |
|
BLAKE2b-256 | c1224539eca90e31e80b60839789b47e8efdb50bc4b29b7a5b0ae6decabb2fdd |