A UUIDField for Django
Python
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead, 22 commits behind dcramer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
uuidfield
.gitignore
LICENSE
MANIFEST.in
README.rst
runtests.py
setup.py
tox.ini

README.rst

django-uuidfield

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!