Skip to content
Browse files

Parent class name added to field label in filters field forms.

  • Loading branch information...
1 parent c57626d commit 13cb9323ab44dd2bf06c97f87a286ca47180fdcb Kuba Janoszek committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 qualitio/filter/fieldfilters.py
View
4 qualitio/filter/fieldfilters.py
@@ -36,6 +36,10 @@ def form_class_attrs(self):
if getattr(self.form_class, 'auto_query_field', False):
attrs['q'] = self.field.formfield(required=False)
+ # HACK: strict qualitio feature
+ if self.field.name == 'parent':
+ attrs['field_name_label'] = "%s (parent)" % self.field.rel.to.__name__
+
return attrs
def create_form_class(self):

0 comments on commit 13cb932

Please sign in to comment.
Something went wrong with that request. Please try again.