Attention ! Gitlab fournissant maintenant nativement des certificats Let’s Encrypt aux domaines personnalisés des Gitlab Pages, nous avons coupé notre service qui le faisait automatiquement pour vous.

Il est impératif, pour que votre domaine personnalisé continue à avoir un certificat Let’s Encrypt à jour, d’activer la fonctionnalité native dans les paramètres de votre projet. Cette activation remplacera votre certificat actuel par un nouveau certificat Let’s Encrypt géré par Gitlab.

Voir les détails sur https://docs.framasoft.org/fr/gitlab/gitlab-pages-le.html

Commit dee7c278 authored by fred.perso's avatar fred.perso

Reformat some codes with Black formatter

parent d31ae887
This diff is collapsed.
This diff is collapsed.
......@@ -8,19 +8,27 @@ from sights.forms import PlaceSearchFilterForm
class PlaceFilter(django_filters.FilterSet):
name = django_filters.CharFilter(label=_('Nom de la localité'), lookup_expr='icontains')
municipality = django_filters.CharFilter(name="municipality__id", label=_('Commune'),
widget=autocomplete.ListSelect2(url='api:municipality_autocomplete',
attrs={'class': 'listselect2'}))
territory = django_filters.CharFilter(name="territory_id", label=_('Département'),
widget=autocomplete.ListSelect2(url='api:territory_autocomplete',
attrs={'class': 'listselect2'}))
type = django_filters.ModelChoiceFilter(name="type", label=_('Type de localité'), queryset=TypePlace.objects.all())
name = django_filters.CharFilter(
label=_("Nom de la localité"), lookup_expr="icontains"
)
municipality = django_filters.CharFilter(
label=_("Commune"),
widget=autocomplete.ListSelect2(
url="api:municipality_autocomplete", attrs={"class": "listselect2"}
),
)
territory = django_filters.CharFilter(
label=_("Département"),
widget=autocomplete.ListSelect2(
url="api:territory_autocomplete", attrs={"class": "listselect2"}
),
)
type = django_filters.ModelChoiceFilter(
label=_("Type de localité"), queryset=TypePlace.objects.all()
)
class Meta:
model = Place
fields = [
'name', 'municipality', 'territory', 'type'
]
order_by = ['name']
fields = ["name", "municipality", "territory", "type"]
order_by = ["name"]
form = PlaceSearchFilterForm
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment