Char ID filed Django
Project description
# django-idfield
Char ID filed for Django
Installation
============
Install it with pip (or easy_install):
```
pip install django-idfield
```
Usage
=====
```
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)
```
Notes
=====
* 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.
Char ID filed for Django
Installation
============
Install it with pip (or easy_install):
```
pip install django-idfield
```
Usage
=====
```
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)
```
Notes
=====
* 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
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
django-idfield-1.0.1.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-idfield-1.0.1.tar.gz.
File metadata
- Download URL: django-idfield-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71a56a60d07be1d8520cc28c6c43cf3a3da1edd70e8175c9d06dee6cc001ba2e
|
|
| MD5 |
fe46ba9b86969fe2aa4d70cea1ed8e95
|
|
| BLAKE2b-256 |
e46c4b5866f604740fdaa75205c25661bbf14825d3a66d8aa614038a423df0f9
|
File details
Details for the file django_idfield-1.0.1-py3-none-any.whl.
File metadata
- Download URL: django_idfield-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04261b31b1151f8dfab491a00facc8cd1380c6ae57553fe1086045b8c4df6851
|
|
| MD5 |
57bd6154aacdd6cd0f6d2775dafd719d
|
|
| BLAKE2b-256 |
0cf1d3ee8cff9548022346650ff6173f1019a24772ca4f04c98e363485d1b972
|