Beispiel #1
0
 def get_form(self, form_class=None):
     form = super(CodingSchemaLinkView, self).get_form(form_class)
     from navigator.forms import gen_coding_choices
     form.fields['schemas'].choices = gen_coding_choices(self.request.user, CodingSchema)
     return form
Beispiel #2
0
 def get_form(self, form_class=None):
     form = super(CodebookLinkView, self).get_form(form_class)
     from navigator.forms import gen_coding_choices
     form.fields['codebooks'].choices = gen_coding_choices(
         self.request.user, Codebook)
     return form
Beispiel #3
0
 def get_form(self, form_class):
     form = super(CodebookLinkView, self).get_form(form_class)
     from navigator.forms import gen_coding_choices
     form.fields['codebooks'].choices = gen_coding_choices(self.request.user, Codebook)
     return form
Beispiel #4
0
 def get_form(self, form_class):
     form = super(CodingSchemaLinkView, self).get_form(form_class)
     from navigator.forms import gen_coding_choices
     form.fields['schemas'].choices = gen_coding_choices(
         self.request.user, CodingSchema)
     return form