1 from django import forms
2 from django.utils.translation import ugettext as _
5 from catalogue.models import Lesson
8 class PostForm(pybb.forms.PostForm):
9 lesson = forms.ModelChoiceField(label = _('Related lesson'), queryset = Lesson.objects.all())