testappproj/testapp/forms.py~
changeset 0 0b061d58aea3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/testappproj/testapp/forms.py~	Mon May 17 22:33:59 2010 +0530
@@ -0,0 +1,25 @@
+from django import forms
+#from google.appengine.ext.db import djangoforms
+import models
+
+
+class ProblemForm(forms.ModelForm):
+  name = forms.CharField(widget=forms.TextInput(attrs={'size': '80'}))
+  categories = forms.CharField(widget=forms.TextInput(attrs={'size': '80'}))
+  description = forms.CharField(widget=forms.Textarea(attrs={'rows': '10', 'cols': '80'}))
+  examples = forms.CharField(widget=forms.Textarea(attrs={'rows': '10', 'cols': '80'}))
+  skeleton = forms.CharField(widget=forms.Textarea(attrs={'rows': '10', 'cols': '80'}))
+  tests = forms.CharField(widget=forms.Textarea(attrs={'rows': '10', 'cols': '80'}))
+  other_tests = forms.CharField(widget=forms.Textarea(attrs={'rows': '10', 'cols': '80'}), required=False)
+  solution = forms.CharField(widget=forms.Textarea(attrs={'rows': '20', 'cols': '80'}), required=False)
+
+  class Meta:
+    model = models.Problem
+    exclude = ('author', 'created', 'modified')
+
+
+# class UploadForm(forms.ModelForm):
+#   file = forms.FileField()
+
+#   class Meta:
+