diff --git a/calendrier/views.py b/calendrier/views.py index 12cf2d8..647d7f0 100644 --- a/calendrier/views.py +++ b/calendrier/views.py @@ -55,9 +55,9 @@ def calendar(request, pYear, pMonth): lMonth = int(pMonth) lCalendarFromMonth = datetime(lYear, lMonth, 1) lCalendarToMonth = datetime(lYear, lMonth, monthrange(lYear, lMonth)[1]) - lEvents = Event.objects.filter(date__gte=lCalendarFromMonth, - date__lte=lCalendarToMonth, - calendrier=True) + lEvents = Event.objects.filter( + date__gte=lCalendarFromMonth, date__lte=lCalendarToMonth + ) if request.user.is_authenticated: lEvents = Event.objects.filter(date__gte=lCalendarFromMonth, date__lte=lCalendarToMonth) diff --git a/partitions/models.py b/partitions/models.py index 95de22e..0c94773 100644 --- a/partitions/models.py +++ b/partitions/models.py @@ -34,7 +34,7 @@ class Partition(models.Model): class Meta: verbose_name = _('Morceau') verbose_name_plural = _('Morceaux') - ordering = ('-'+Lower('nom'),) + ordering = (Lower('nom'),) class PartitionSet(models.Model): @@ -54,4 +54,4 @@ class PartitionSet(models.Model): class Meta: verbose_name = _('Morceau') verbose_name_plural = _('Morceaux') - ordering = ('-'+Lower('nom'),) + ordering = (Lower('nom'),)