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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-randompinfield-0.4.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a07c540261e41411fbe56656ff7b131be28c89f6ade37c258e1372dcc291b5 |
|
MD5 | da8428a8137c323b1115f9624d5ecae3 |
|
BLAKE2b-256 | 9b19ce1bf6c1519b884a4bcfe2cb36130d8d40527ab2e93fa53fead17ae1702a |