bpipat / django-uuidfield

A UUIDField for Django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

A UUIDField for Django

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%