diff --git a/bda/admin.py b/bda/admin.py index c706c0dd..55030b53 100644 --- a/bda/admin.py +++ b/bda/admin.py @@ -219,10 +219,10 @@ class SpectacleReventeAdmin(admin.ModelAdmin): list_display = ("spectacle", "seller", "date", "soldTo") raw_id_fields = ("attribution",) readonly_fields = ("expiration_time",) - search_fields = ("spectacle__title", - "seller__user__username", - "seller__user__firstname", - "seller__user__lastname",) + search_fields = ['attribution__spectacle__title', + 'seller__user__username', + 'seller__user__first_name', + 'seller__user__last_name'] admin.site.register(CategorieSpectacle) diff --git a/bda/models.py b/bda/models.py index a9fd702f..a09652fd 100644 --- a/bda/models.py +++ b/bda/models.py @@ -254,7 +254,7 @@ class SpectacleRevente(models.Model): def expiration_time_str(self): return self.expiration_time \ .astimezone(timezone.get_current_timezone()) \ - .strftime('%D à %H:%M') + .strftime('%d/%m/%y à %H:%M') def __str__(self): return "%s -- %s" % (self.seller, diff --git a/bda/templates/bda-shotgun.html b/bda/templates/bda-shotgun.html new file mode 100644 index 00000000..e10fae00 --- /dev/null +++ b/bda/templates/bda-shotgun.html @@ -0,0 +1,14 @@ +{% extends "base_title.html" %} + +{% block realcontent %} +

Places disponibles immédiatement

+ {% if shotgun %} +