summaryrefslogtreecommitdiff
path: root/main/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/forms.py')
-rw-r--r--main/forms.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/main/forms.py b/main/forms.py
index 98c6b9e..ee69328 100644
--- a/main/forms.py
+++ b/main/forms.py
@@ -29,7 +29,7 @@ from django.core.mail import send_mail
from chimere import settings
from chimere.main.models import Marker, Route, PropertyModel, Property, Area,\
- News
+ News, Category
from chimere.main.widgets import AreaField, PointField, TextareaWidget
def notifyStaff(geo_object):
@@ -52,6 +52,14 @@ class NewsAdminForm(forms.ModelForm):
class Meta:
model = News
+class CategoryAdminForm(forms.ModelForm):
+ """
+ Main form for categories
+ """
+ description = forms.CharField(widget=TextareaWidget, required=False)
+ class Meta:
+ model = Category
+
class MarkerAdminForm(forms.ModelForm):
"""
Main form for marker