16 lines
313 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
from django import forms
2013-09-28 22:20:19 +02:00
from main.models import Host
2013-09-29 01:21:44 +02:00
class CreateHostForm(forms.ModelForm):
class Meta:
model = Host
fields = ['subdomain', 'domain', 'comment']
class EditHostForm(forms.ModelForm):
class Meta:
model = Host
fields = ['comment']