Skip to content

Commit

Permalink
make block lookup case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed Sep 19, 2024
1 parent 00437c1 commit 4fec334
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ephios/plugins/complexsignup/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class PluginApp(PluginConfig):
name = "ephios.plugins.complexsignup"

class EphiosPluginMeta:
name = _("Modular Signup Requirements")
name = _("Preconfigured Structures (experimental)")
author = "Ephios Team"
description = _(
"This plugins adds a shift structure for which you configure reusable "
"modules of requirements to create complex shift setups."
"structures to create complex shift setups."
)

def ready(self):
Expand Down
4 changes: 2 additions & 2 deletions ephios/plugins/complexsignup/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class ComplexConfigurationForm(SignupConfigurationForm):
building_block = forms.ModelChoiceField(
widget=ModelSelect2Widget(
model=BuildingBlock,
search_fields=["name"],
search_fields=["name__icontains"],
),
queryset=BuildingBlock.objects.all(),
)
Expand All @@ -170,7 +170,7 @@ class ComplexShiftStructure(
BaseShiftStructure,
):
slug = "complex"
verbose_name = _("Preconfigured Structure")
verbose_name = _("Preconfigured Structure (experimental)")
description = _("Use preconfigured elements to build a custom structure.")
shift_state_template_name = "complexsignup/shift_state.html"
configuration_form_class = ComplexConfigurationForm
Expand Down

0 comments on commit 4fec334

Please sign in to comment.