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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f66501213f15871da5886444baf198d5b15019675b41013634d1080a4e4f75b8 |
|
MD5 | 9f65fad040a574aef78a2a7bc4504e23 |
|
BLAKE2b-256 | 07301b2b1ca60b12f51dad6ac0ce1b7117e57b6d2dfec7309b8f159f44d19965 |