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