Commits

Martin von Löwis  committed 6a2d675 Draft

Work around missing introspection capability in gae2django.

  • Participants
  • Parent commits 2519623
  • Branches bugs.python.org

Comments (0)

Files changed (1)

File 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()