Skip to main content

A django model field that generates a random pin of a desired length

Project description

Generates a random pin for your Django model field.


Install via pip:

$ pip install django-randompinfield

Add to your installed apps:



Import RandomPinField into your

from django.db import models
from randompinfield import RandomPinField

class MyModel(models.Model):
    slug = RandomPinField(length=3)

The length is an optional argument.

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-randompinfield-0.4.7.tar.gz (1.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page