mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Lint.
This commit is contained in:
parent
a46b7b6f5a
commit
74cd9345ae
2 changed files with 8 additions and 6 deletions
|
@ -18,6 +18,7 @@ EXPIRE_CHOICES = (
|
|||
|
||||
EXPIRE_DEFAULT = 3600 * 24 * 30
|
||||
|
||||
|
||||
class SnippetForm(forms.ModelForm):
|
||||
lexer = forms.ChoiceField(choices=LEXER_LIST, initial=LEXER_DEFAULT, label=_(u'Lexer'))
|
||||
expire_options = forms.ChoiceField(choices=EXPIRE_CHOICES, initial=EXPIRE_DEFAULT, label=_(u'Expires'))
|
||||
|
@ -91,6 +92,7 @@ USERPREFS_FONT_CHOICES = [(None, _(u'Default'))] + [
|
|||
|
||||
USERPREFS_SIZES = [(None, _(u'Default'))] + [(i, '%dpx' % i) for i in range(5, 25)]
|
||||
|
||||
|
||||
class UserSettingsForm(forms.Form):
|
||||
|
||||
default_name = forms.CharField(label=_(u'Default Name'), required=False)
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
import threading
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.mail.backends.base import BaseEmailBackend
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
|
||||
class EmailBackend(BaseEmailBackend):
|
||||
def __init__(self, fail_silently=False, **kwargs):
|
||||
super(EmailBackend, self).__init__(fail_silently=fail_silently)
|
||||
|
|
Loading…
Reference in a new issue