From 18d457c831c88ce089e5b06a03eac897b0cdf65f Mon Sep 17 00:00:00 2001 From: Ben Welsh Date: Thu, 22 Oct 2009 20:56:42 -0700 Subject: [PATCH] Added an hNews form --- forms.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/forms.py b/forms.py index 1facbfa..cae7190 100644 --- a/forms.py +++ b/forms.py @@ -43,7 +43,7 @@ # Microformats from microformats.models import geo, hCard, adr, adr_type, org, email,\ email_type, tel, tel_type, hCalendar, hReview, hListing, hFeed,\ - hEntry + hEntry, hNews class GeoForm(forms.ModelForm): """ @@ -212,6 +212,14 @@ class hEntryForm(forms.ModelForm): class Meta: model = hEntry +class hNewsForm(LocationAwareForm): + """ + A simple form for gathering information for the hNews part of the hEntry + microformat. + """ + class Meta: + model = hNews + class AdrForm(forms.ModelForm): """ A simple form to use for gathering basic information for an adr microformat.