Fix référence à la source

This commit is contained in:
Jean-Marie Favreau 2024-11-11 13:39:03 +01:00
parent ddb20befe6
commit 67c65f14d1

View File

@ -609,11 +609,11 @@ class Event(models.Model):
if self.import_sources:
result = []
for s in self.import_sources:
o_s = RecurrentImport.objects.get(source=s)
o_s = RecurrentImport.objects.filter(source=s).first()
if o_s:
result.append((o_s.get_absolute_url(), o_s.name))
else:
result.append((o_s, o_s))
result.append((s, s))
return result
else:
return []