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:
|
if self.import_sources:
|
||||||
result = []
|
result = []
|
||||||
for s in self.import_sources:
|
for s in self.import_sources:
|
||||||
o_s = RecurrentImport.objects.get(source=s)
|
o_s = RecurrentImport.objects.filter(source=s).first()
|
||||||
if o_s:
|
if o_s:
|
||||||
result.append((o_s.get_absolute_url(), o_s.name))
|
result.append((o_s.get_absolute_url(), o_s.name))
|
||||||
else:
|
else:
|
||||||
result.append((o_s, o_s))
|
result.append((s, s))
|
||||||
return result
|
return result
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user