@@ -2,7 +2,7 @@
from django.forms import ModelForm
# Application imports.
from .models import Entity, Interface, Communication
from .models import Project, Entity, Interface, Communication
class WidgetCSSClassFormMixin(object):
@@ -107,3 +107,17 @@ class CommunicationForm(WidgetCSSClassFo
"description": "Communication description"}
widget_css_classes = {"ALL": "span6"}
class ProjectForm(WidgetCSSClassFormMixin, PlaceholderFormMixin, ModelForm):
"""
Implements a custom model form for projects with some styling changes.
class Meta:
model = Project
widget_placeholders = {"name": "Project name",
"description": "Project description"}