Permalink
Browse files

Document and clean up forms.py

  • Loading branch information...
1 parent b7aa30b commit c2c8cb417374724fc9b8b0f9266af96bdb996788 @Osmose Osmose committed Jun 17, 2011
Showing with 10 additions and 3 deletions.
  1. +10 −3 apps/homesnippets/forms.py
@@ -1,11 +1,18 @@
-from django.forms import *
+"""
+Form classes
+"""
+
+from django.forms import Form, DateTimeField, DateInput, CharField, widgets
+
class BulkDateForm(Form):
+ """Form for changing the start and end dates of many snippets at once"""
+
start_date = DateTimeField(label='Start Date',
- widget=DateInput(attrs={'class':'datetime'}),
+ widget=DateInput(attrs={'class': 'datetime'}),
required=False)
end_date = DateTimeField(label='End Date',
- widget=DateInput(attrs={'class':'datetime'}),
+ widget=DateInput(attrs={'class': 'datetime'}),
required=False)
ids = CharField(required=True,
widget=widgets.HiddenInput())

0 comments on commit c2c8cb4

Please sign in to comment.