On assure qu'à l'import l'événement ait toujours une catégorie
This commit is contained in:
parent
2253fc50b4
commit
81ae863b45
@ -725,6 +725,8 @@ class Event(models.Model):
|
||||
)
|
||||
except Category.DoesNotExist:
|
||||
event_structure["category"] = Category.get_default_category()
|
||||
else:
|
||||
event_structure["category"] = Category.get_default_category()
|
||||
|
||||
if "published" in event_structure and event_structure["published"] is not None:
|
||||
if event_structure["published"]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user