Skip to content

Commit

Permalink
fix: remove rich help text error
Browse files Browse the repository at this point in the history
Converts rich help text to string to avoid type error
Closes #114
  • Loading branch information
chriszs authored and Frank Duncan committed Mar 20, 2023
1 parent c2f038e commit 28c9bf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypha/apply/stream_forms/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ class Meta:

def get_field_kwargs(self, struct_value):
kwargs = super().get_field_kwargs(struct_value)
kwargs['help_text'] = kwargs['help_text'] + f" Accepted file types are {settings.FILE_ACCEPT_ATTR_VALUE}"
kwargs['help_text'] = str(kwargs['help_text']) + f" Accepted file types are {settings.FILE_ACCEPT_ATTR_VALUE}"
return kwargs


Expand All @@ -434,7 +434,7 @@ class Meta:

def get_field_kwargs(self, struct_value):
kwargs = super().get_field_kwargs(struct_value)
kwargs['help_text'] = kwargs['help_text'] + f" Accepted file types are {settings.FILE_ACCEPT_ATTR_VALUE}"
kwargs['help_text'] = str(kwargs['help_text']) + f" Accepted file types are {settings.FILE_ACCEPT_ATTR_VALUE}"
return kwargs

def prepare_data(self, value, data, serialize):
Expand Down

0 comments on commit 28c9bf0

Please sign in to comment.