prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Infrastructure list is filtered on "Ouvrage" by default
  J'ai créé des points d'aménagements (8 au total), cependant la plupart ne s'affichent pas (ni dans la liste, ni sur la carte)...
  ![1](https://cloud.githubusercontent.com/assets/7872468/3261864/b950187a-f25e-11e3-90ce-49701ae4aa36.JPG)
  Lorsque je rentre dans une fiche aménagement et que je reclique sur le bouton liste, là ils apparaissent tous mais seulement sur la carte.
  ![2](https://cloud.githubusercontent.com/assets/7872468/3261921/4d0614a2-f25f-11e3-8234-d1b44a293728.JPG)
  Par contre, si je touche au zoom, ils disparaissent et je n'ai plus que les trois du début.
  
  
  </issue>
  <code>
  [start of geotrek/infrastructure/filters.py]
  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     class Meta(StructureRelatedFilterSet.Meta):
  24         model = Infrastructure
  25         fields = StructureRelatedFilterSet.Meta.fields + ['type__type', 'type']
  26 
  27 
  28 class SignageFilterSet(StructureRelatedFilterSet):
  29     intervention_year = YearFilter(name='interventions_set__date',
  30                                    widget=InfrastructureYearSelect)
  31 
  32     def __init__(self, *args, **kwargs):
  33         super(SignageFilterSet, self).__init__(*args, **kwargs)
  34         field = self.form.fields['type']
  35         field.queryset = field.queryset.filter(type=INFRASTRUCTURE_TYPES.SIGNAGE)
  36 
  37     class Meta(StructureRelatedFilterSet.Meta):
  38         model = Signage
  39         fields = StructureRelatedFilterSet.Meta.fields + ['type']
  40
  [end of geotrek/infrastructure/filters.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/geotrek/infrastructure/filters.py b/geotrek/infrastructure/filters.py
  --- a/geotrek/infrastructure/filters.py
  +++ b/geotrek/infrastructure/filters.py
  @@ -20,6 +20,11 @@
           field = self.form.fields['type']
           field.queryset = field.queryset.exclude(type=INFRASTRUCTURE_TYPES.SIGNAGE)
   
  +        field = self.form.fields['type__type']
  +        all_choices = field.widget.choices
  +        all_choices = [c for c in all_choices if c[0] != INFRASTRUCTURE_TYPES.SIGNAGE]
  +        field.widget.choices = [('', _(u"Category"))] + all_choices
  +
       class Meta(StructureRelatedFilterSet.Meta):
           model = Infrastructure
           fields = StructureRelatedFilterSet.Meta.fields + ['type__type', 'type']
  @@ -29,11 +34,6 @@
       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 + ['type']
  +        fields = StructureRelatedFilterSet.Meta.fields
  
verification_info: {"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@@ -20,6 +20,11 @@\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@@ -29,11 +34,6 @@\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+        fields = StructureRelatedFilterSet.Meta.fields\n", "issue": "Infrastructure list is filtered on \"Ouvrage\" by default\nJ'ai cr\u00e9\u00e9 des points d'am\u00e9nagements (8 au total), cependant la plupart ne s'affichent pas (ni dans la liste, ni sur la carte)...\n![1](https://cloud.githubusercontent.com/assets/7872468/3261864/b950187a-f25e-11e3-90ce-49701ae4aa36.JPG)\nLorsque je rentre dans une fiche am\u00e9nagement et que je reclique sur le bouton liste, l\u00e0 ils apparaissent tous mais seulement sur la carte.\n![2](https://cloud.githubusercontent.com/assets/7872468/3261921/4d0614a2-f25f-11e3-8234-d1b44a293728.JPG)\nPar contre, si je touche au zoom, ils disparaissent et je n'ai plus que les trois du d\u00e9but.\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    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"}]}