This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Project Description

Generates a random pin for your Django model field.

Installation

Install via pip:

$ pip install django-randompinfield

Add to your installed apps:

INSTALLED_APPS = (
    ...
    'randompinfield',
    ...
)

Usage

Import RandomPinField into your models.py.

from django.db import models
from randompinfield import RandomPinField

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

The length is an optional argument.

Release History

Release History

This version
History Node

0.4.7

History Node

0.4.6

History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4

History Node

0.3.4

History Node

0.3.3

History Node

0.2

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-randompinfield-0.4.7.tar.gz (1.8 kB) Copy SHA256 Checksum SHA256 Source Nov 4, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting