Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A UUIDField for Django
branch: master

Merge pull request #42 from coagulant/feature/dj17

Django 1.7 migrations support
latest commit 9bd27e96ed
David Cramer authored

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!

Something went wrong with that request. Please try again.