We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
SIGNAGES module / Type filter disappeared
I think TYPE filter was available before.
Crucial filter of course.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `geotrek/infrastructure/filters.py`
Content:
```
1 from django.utils.translation import ugettext_lazy as _
2 
3 from geotrek.common.filters import StructureRelatedFilterSet, YearFilter
4 from geotrek.maintenance.filters import InterventionYearSelect
5 
6 from .models import INFRASTRUCTURE_TYPES, Infrastructure, Signage
7 
8 
9 class InfrastructureYearSelect(InterventionYearSelect):
10     label = _(u"Intervention year")
11 
12 
13 class InfrastructureFilterSet(StructureRelatedFilterSet):
14     intervention_year = YearFilter(name='interventions_set__date',
15                                    widget=InfrastructureYearSelect,
16                                    label=_(u"Intervention year"))
17 
18     def __init__(self, *args, **kwargs):
19         super(InfrastructureFilterSet, self).__init__(*args, **kwargs)
20         field = self.form.fields['type']
21         field.queryset = field.queryset.exclude(type=INFRASTRUCTURE_TYPES.SIGNAGE)
22 
23         field = self.form.fields['type__type']
24         all_choices = field.widget.choices
25         all_choices = [c for c in all_choices if c[0] != INFRASTRUCTURE_TYPES.SIGNAGE]
26         field.widget.choices = [('', _(u"Category"))] + all_choices
27 
28     class Meta(StructureRelatedFilterSet.Meta):
29         model = Infrastructure
30         fields = StructureRelatedFilterSet.Meta.fields + ['type__type', 'type']
31 
32 
33 class SignageFilterSet(StructureRelatedFilterSet):
34     intervention_year = YearFilter(name='interventions_set__date',
35                                    widget=InfrastructureYearSelect)
36 
37     class Meta(StructureRelatedFilterSet.Meta):
38         model = Signage
39         fields = StructureRelatedFilterSet.Meta.fields
40
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/geotrek/infrastructure/filters.py b/geotrek/infrastructure/filters.py
--- a/geotrek/infrastructure/filters.py
+++ b/geotrek/infrastructure/filters.py
@@ -12,8 +12,7 @@
 
 class InfrastructureFilterSet(StructureRelatedFilterSet):
     intervention_year = YearFilter(name='interventions_set__date',
-                                   widget=InfrastructureYearSelect,
-                                   label=_(u"Intervention year"))
+                                   widget=InfrastructureYearSelect)
 
     def __init__(self, *args, **kwargs):
         super(InfrastructureFilterSet, self).__init__(*args, **kwargs)
@@ -34,6 +33,11 @@
     intervention_year = YearFilter(name='interventions_set__date',
                                    widget=InfrastructureYearSelect)
 
+    def __init__(self, *args, **kwargs):
+        super(SignageFilterSet, self).__init__(*args, **kwargs)
+        field = self.form.fields['type']
+        field.queryset = field.queryset.filter(type=INFRASTRUCTURE_TYPES.SIGNAGE)
+
     class Meta(StructureRelatedFilterSet.Meta):
         model = Signage
-        fields = StructureRelatedFilterSet.Meta.fields
+        fields = StructureRelatedFilterSet.Meta.fields + ['type']

{"golden_diff": "diff --git a/geotrek/infrastructure/filters.py b/geotrek/infrastructure/filters.py\n--- a/geotrek/infrastructure/filters.py\n+++ b/geotrek/infrastructure/filters.py\n@@ -12,8 +12,7 @@\n \n class InfrastructureFilterSet(StructureRelatedFilterSet):\n     intervention_year = YearFilter(name='interventions_set__date',\n-                                   widget=InfrastructureYearSelect,\n-                                   label=_(u\"Intervention year\"))\n+                                   widget=InfrastructureYearSelect)\n \n     def __init__(self, *args, **kwargs):\n         super(InfrastructureFilterSet, self).__init__(*args, **kwargs)\n@@ -34,6 +33,11 @@\n     intervention_year = YearFilter(name='interventions_set__date',\n                                    widget=InfrastructureYearSelect)\n \n+    def __init__(self, *args, **kwargs):\n+        super(SignageFilterSet, self).__init__(*args, **kwargs)\n+        field = self.form.fields['type']\n+        field.queryset = field.queryset.filter(type=INFRASTRUCTURE_TYPES.SIGNAGE)\n+\n     class Meta(StructureRelatedFilterSet.Meta):\n         model = Signage\n-        fields = StructureRelatedFilterSet.Meta.fields\n+        fields = StructureRelatedFilterSet.Meta.fields + ['type']\n", "issue": "SIGNAGES module / Type filter disappeared\nI think TYPE filter was available before.\nCrucial filter of course.\n\n", "before_files": [{"content": "from django.utils.translation import ugettext_lazy as _\n\nfrom geotrek.common.filters import StructureRelatedFilterSet, YearFilter\nfrom geotrek.maintenance.filters import InterventionYearSelect\n\nfrom .models import INFRASTRUCTURE_TYPES, Infrastructure, Signage\n\n\nclass InfrastructureYearSelect(InterventionYearSelect):\n    label = _(u\"Intervention year\")\n\n\nclass InfrastructureFilterSet(StructureRelatedFilterSet):\n    intervention_year = YearFilter(name='interventions_set__date',\n                                   widget=InfrastructureYearSelect,\n                                   label=_(u\"Intervention year\"))\n\n    def __init__(self, *args, **kwargs):\n        super(InfrastructureFilterSet, self).__init__(*args, **kwargs)\n        field = self.form.fields['type']\n        field.queryset = field.queryset.exclude(type=INFRASTRUCTURE_TYPES.SIGNAGE)\n\n        field = self.form.fields['type__type']\n        all_choices = field.widget.choices\n        all_choices = [c for c in all_choices if c[0] != INFRASTRUCTURE_TYPES.SIGNAGE]\n        field.widget.choices = [('', _(u\"Category\"))] + all_choices\n\n    class Meta(StructureRelatedFilterSet.Meta):\n        model = Infrastructure\n        fields = StructureRelatedFilterSet.Meta.fields + ['type__type', 'type']\n\n\nclass SignageFilterSet(StructureRelatedFilterSet):\n    intervention_year = YearFilter(name='interventions_set__date',\n                                   widget=InfrastructureYearSelect)\n\n    class Meta(StructureRelatedFilterSet.Meta):\n        model = Signage\n        fields = StructureRelatedFilterSet.Meta.fields\n", "path": "geotrek/infrastructure/filters.py"}], "after_files": [{"content": "from django.utils.translation import ugettext_lazy as _\n\nfrom geotrek.common.filters import StructureRelatedFilterSet, YearFilter\nfrom geotrek.maintenance.filters import InterventionYearSelect\n\nfrom .models import INFRASTRUCTURE_TYPES, Infrastructure, Signage\n\n\nclass InfrastructureYearSelect(InterventionYearSelect):\n    label = _(u\"Intervention year\")\n\n\nclass InfrastructureFilterSet(StructureRelatedFilterSet):\n    intervention_year = YearFilter(name='interventions_set__date',\n                                   widget=InfrastructureYearSelect)\n\n    def __init__(self, *args, **kwargs):\n        super(InfrastructureFilterSet, self).__init__(*args, **kwargs)\n        field = self.form.fields['type']\n        field.queryset = field.queryset.exclude(type=INFRASTRUCTURE_TYPES.SIGNAGE)\n\n        field = self.form.fields['type__type']\n        all_choices = field.widget.choices\n        all_choices = [c for c in all_choices if c[0] != INFRASTRUCTURE_TYPES.SIGNAGE]\n        field.widget.choices = [('', _(u\"Category\"))] + all_choices\n\n    class Meta(StructureRelatedFilterSet.Meta):\n        model = Infrastructure\n        fields = StructureRelatedFilterSet.Meta.fields + ['type__type', 'type']\n\n\nclass SignageFilterSet(StructureRelatedFilterSet):\n    intervention_year = YearFilter(name='interventions_set__date',\n                                   widget=InfrastructureYearSelect)\n\n    def __init__(self, *args, **kwargs):\n        super(SignageFilterSet, self).__init__(*args, **kwargs)\n        field = self.form.fields['type']\n        field.queryset = field.queryset.filter(type=INFRASTRUCTURE_TYPES.SIGNAGE)\n\n    class Meta(StructureRelatedFilterSet.Meta):\n        model = Signage\n        fields = StructureRelatedFilterSet.Meta.fields + ['type']\n", "path": "geotrek/infrastructure/filters.py"}]}