Beispiel #1
0
 def get_field_value(self, field, instance, *args):
     if field.startswith("question_"):
         instance = instance.question
     return super().get_field_value(field, instance, *args)
Beispiel #2
0
 def get_field_value(self, field, instance, *args):
     if field.startswith("thread_"):
         instance = instance.thread
         field = field[len("thread_"):]
     return super().get_field_value(field, instance, *args)
Beispiel #3
0
 def get_field_value(self, field, *args):
     if field.startswith("question_"):
         field = field[len("question_"):]
     return super().get_field_value(field, *args)