Skip to main content

Char ID fora Django

Project description

# django-idfield

Char ID fora 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 generates a value, if value not set.
* If **readable=True**, value will be generated from caps letters and numbers, которые не схожи

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

django-idfield-1.0.0.tar.gz (3.0 kB view hashes)

Uploaded source

Built Distribution

django_idfield-1.0.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page