UUIDField in Django
Project description
Provides a UUIDField for your Django models.
Installation
Install it with pip (or easy_install):
pip install django-uuidfield
Usage
First you’ll need to attach a UUIDField to your class. This acts as a char(32) to maintain compatibility with SQL versions:
from uuidfield import UUIDField class MyModel(models.Model): uuid = UUIDField(auto=True)
Check out the source for more configuration values.
Enjoy!
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
File details
Details for the file django-uuidfield-0.5.0.tar.gz
.
File metadata
- Download URL: django-uuidfield-0.5.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec7db94ff6fc5b2a2f8edf6a9ab29b401a6a63d4523840fa0a3f1286ea45de86 |
|
MD5 | 507db78a92aeb19d2328811aeb598e72 |
|
BLAKE2b-256 | 36ababee9bf82ec32d68881f03ca4ce7df75e5fec666ed29a014ce808e848b53 |