Compare commits
3 Commits
32201ecd43
...
22c895b3a2
Author | SHA1 | Date |
---|---|---|
Jean-Marie Favreau | 22c895b3a2 | |
Jean-Marie Favreau | 94cc66e3f2 | |
Jean-Marie Favreau | 22ae9a97cc |
|
@ -209,7 +209,10 @@ class Place(models.Model):
|
||||||
return Event.objects.filter(exact_location=self).count()
|
return Event.objects.filter(exact_location=self).count()
|
||||||
|
|
||||||
def match(self, event):
|
def match(self, event):
|
||||||
return event.location in self.aliases
|
if self.aliases:
|
||||||
|
return event.location in self.aliases
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
def associate_matching_events(self):
|
def associate_matching_events(self):
|
||||||
u_events = Event.objects.filter(exact_location__isnull=True)
|
u_events = Event.objects.filter(exact_location__isnull=True)
|
||||||
|
|
|
@ -12,8 +12,10 @@
|
||||||
</header>
|
</header>
|
||||||
<p class="subentry-search"></p>
|
<p class="subentry-search"></p>
|
||||||
{% if not no_location %}
|
{% if not no_location %}
|
||||||
{% picto_from_name "map-pin" %}
|
{% if event.location or event.exact_location %}
|
||||||
{% if event.location_hl %}{{ event.location_hl | safe }}{% else %}{% include "agenda_culturel/event-location-inc.html" with event=event %}{% endif %}</p>
|
{% picto_from_name "map-pin" %}
|
||||||
|
{% include "agenda_culturel/event-location-inc.html" with event=event %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if event.has_recurrences %}
|
{% if event.has_recurrences %}
|
||||||
<p class="subentry-search">
|
<p class="subentry-search">
|
||||||
|
|
Loading…
Reference in New Issue