mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-02-02 01:44:40 +00:00
pyi2phosts/postkey/views.py: remove excessive import
This commit is contained in:
parent
08fa9c1ae7
commit
a0bba86169
@ -1,7 +1,6 @@
|
||||
import re
|
||||
|
||||
from django import forms
|
||||
from django.forms import ModelForm
|
||||
from django.shortcuts import render_to_response
|
||||
from django.shortcuts import redirect
|
||||
from django.template import RequestContext
|
||||
@ -12,7 +11,7 @@ from pyi2phosts.lib.utils import get_logger
|
||||
from pyi2phosts.lib.validation import validate_hostname
|
||||
from pyi2phosts.lib.validation import validate_b64hash
|
||||
|
||||
class AddForm(ModelForm):
|
||||
class AddForm(forms.ModelForm):
|
||||
"""
|
||||
This is our class for host-add form. It's based on django's ModelForm
|
||||
and uses our model "i2phost" (see postkey/models.py)
|
||||
|
Loading…
x
Reference in New Issue
Block a user