Browse Source

Make i2phostAdminForm compatible with django 1.8

django.core.exceptions.ImproperlyConfigured: Creating a ModelForm
without either the 'fields' attribute or the 'exclude' attribute is
prohibited; form i2phostAdminForm needs updating.
pull/1/head
Hidden Z 9 years ago
parent
commit
93fa07301c
  1. 2
      pyi2phosts/postkey/admin.py

2
pyi2phosts/postkey/admin.py

@ -10,8 +10,6 @@ from pyi2phosts.lib.validation import validate_b64hash @@ -10,8 +10,6 @@ from pyi2phosts.lib.validation import validate_b64hash
class i2phostAdminForm(forms.ModelForm):
""" Custom form for editing hosts via admin interface """
class Meta:
model = i2phost
def clean_name(self):
"""Validate hostname"""

Loading…
Cancel
Save