Skip to main content

Char ID filed Django

Project description

# django-idfield

Char ID filed for Django


Install it with pip (or easy_install):

pip install django-idfield


from idfield import IDField

class MyModel(models.Model):
id = IDField(max_length=10, readable=False, primary_key=True, editable=False)
code = IDField(max_length=4, readable=True)


* IDField is not a completely unique ID. The larger value of **max_length** makes less collisions possible.
* IDField always generate a value, if value is not set.
* If **readable=True**, value will be generated from caps letters and numbers, which do not look alike.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-idfield, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_idfield-1.0.1-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-idfield-1.0.1.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page