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.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ef1ace34b4db5c74334b96ed43f0c0ab2fe014e8eac38404ef478cb0f7e18d1 |
|
MD5 | e7c34935540d29487287ccd17a57f265 |
|
BLAKE2b-256 | 6922085d67fd4df00db13f8090c61ce1568156898665c119a9e3b80135bb41cd |