Fix référence à la source
This commit is contained in:
parent
ddb20befe6
commit
67c65f14d1
@ -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 []
|
||||
|
Loading…
x
Reference in New Issue
Block a user