Char ID fora Django
Project description
# django-idfield
Char ID fora 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 generates a value, if value not set.
* If **readable=True**, value will be generated from caps letters and numbers, которые не схожи
Char ID fora 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 generates a value, if value not set.
* If **readable=True**, value will be generated from caps letters and numbers, которые не схожи
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.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for django_idfield-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6460267fbefec4da73f6297910c4382e964f052f877b6045883f49d176a76e8 |
|
MD5 | 073ae458db5ac4c7de201cc6b7c5ed53 |
|
BLAKE2b-256 | e8664b56339707c24318fb4e419be83f01ebc7dc6c777316ce6dfe808ecd9229 |