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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b356839f3b28d495bfdfe5c3490380c7d390eede72eb4d31f64533abeb2aa68 |
|
MD5 | a1c413c22a2115081b221392d3226f84 |
|
BLAKE2b-256 | 1cf3dca21a67dfd1217ceab3f53ea183de44abac4f2be6770151dd307a271f90 |