Skip to content

Commit

Permalink
add to button label
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 22, 2024
1 parent 5e0577a commit f6b6003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edc_action_item/view_utils/action_item_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ class ActionItemButton(ModelButton):

@property
def label(self) -> str | None:
return (
label = (
self.fixed_label
if self.fixed_label
else self.action_cls.reference_model_cls()._meta.verbose_name
)
return f"Add {label}"

@property
def site(self) -> Site | None:
Expand Down

0 comments on commit f6b6003

Please sign in to comment.