mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Old length
This commit is contained in:
parent
259b43bc90
commit
f069b2198c
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ from django.utils.translation import ugettext_lazy as _
|
||||||
from pastebin.apps.dpaste.highlight import LEXER_DEFAULT, pygmentize
|
from pastebin.apps.dpaste.highlight import LEXER_DEFAULT, pygmentize
|
||||||
|
|
||||||
t = 'abcdefghijkmnopqrstuvwwxyzABCDEFGHIJKLOMNOPQRSTUVWXYZ1234567890'
|
t = 'abcdefghijkmnopqrstuvwwxyzABCDEFGHIJKLOMNOPQRSTUVWXYZ1234567890'
|
||||||
def generate_secret_id(length=5):
|
def generate_secret_id(length=4):
|
||||||
return ''.join([random.choice(t) for i in range(length)])
|
return ''.join([random.choice(t) for i in range(length)])
|
||||||
|
|
||||||
class Snippet(models.Model):
|
class Snippet(models.Model):
|
||||||
|
|
Loading…
Reference in a new issue