Skip to main content

django-randompinfield

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.

Release files for django-randompinfield 0.4.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-randompinfield 0.4.7
File Size Uploaded
django-randompinfield-0.4.7.tar.gz 1.8 kB Details

Release files / django-randompinfield-0.4.7.tar.gz

Download URL django-randompinfield-0.4.7.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
452ef6abc9888c9296f0d8c9f4f3e16a018ded1f6ab805677c13cf5ad4d3a82d
BLAKE2b-256 checksum
How to use checksums
c5da1e86d3339c122031f4bf5aa0d3842b8000801032ee5c781339813d061b10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.7 This release

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page