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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecdc526863ff1c8be6c68caf944e520dc77905e97af0fca8fa384de4c8165219 |
|
MD5 | 9bdb6aa62d1054cea7439aba37e78a3b |
|
BLAKE2b-256 | bcce60e03851ba800198c37afef6b60325fcf6bf85d9040d2bcf9efc33a8e989 |