1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-22 12:34:17 +00:00

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.
This commit is contained in:
Hidden Z 2015-10-23 20:05:08 +00:00
parent 9833b4c24e
commit 93fa07301c

View File

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