Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Added an hNews form
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Welsh committed Oct 23, 2009
1 parent ae47b8c commit 18d457c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion forms.py
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 18d457c

Please sign in to comment.