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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9b8a3c9279a98333f52feef8a78fcd1315aea77d846d8333fcd82bcfca37643 |
|
MD5 | ff8bca7ffefed36457a332dc9ba4896e |
|
BLAKE2b-256 | 7e70c80ca5c2960651f0bca6c0999f09d90198cd688b1a96a55f90f65ab67a7d |
Close
Hashes for DjangoHexadecimalField-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 508f9aa1c8fa3aed59562a07c77d6e0ea9f087681f0566a00b79e047a2e3c68d |
|
MD5 | c6d88ac07591f2eead5925a0bb4ae2e1 |
|
BLAKE2b-256 | c31729af4f21235e055e80f3e7ff806cebe5a8d4f40fa47034d1ff4537431c4b |