Commits

Martin von Löwis committed 6a2d675 Draft

Work around missing introspection capability in gae2django.

Comments (0)

Files changed (1)

codereview/views.py

 class BranchForm(forms.Form):
   category = forms.CharField(
     widget=forms.Select(choices=[(ch, ch)
-                                 for ch in models.Branch.category.choices]))
+                                 for ch in models.Branch._meta.get_field('category').choices]))
   name = forms.CharField()
   url = forms.URLField()