Skip to main content

A decoder/encoder Field for uuid

Project description


Provides a NativeShortUUIDField for your Django models which uses the base-57 "Short UUID" package at to be used in Python and store it as full UUID in database.


Install it with pip (or easy_install)::

pip install django-nativeshortuuidfield


First you'll need to add a NativeShortUUIDField to your class::

from native_shortuuid import NativeShortUUIDField

class MyModel(models.Model):
    uuid = NativeShortUUIDField(unique=True, default=uuid.uuid4)



  • NativeShortUUIDField is a subclass of django.db.models.UUIDField

  • You can pass usual Django UUIDField parameters on init, although some of them are added/overwritten:

    • blank=True, editable=False (set auto=False to remove these fields enforcement)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-nativeshortuuidfield, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size django_nativeshortuuidfield-1.2.1-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-nativeshortuuidfield-1.2.1.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page