Fix import
This commit is contained in:
parent
6b79949002
commit
0d62660c2b
@ -323,7 +323,7 @@ def import_events_from_url(self, url, cat, tags, force=False, user_id=None):
|
||||
if acquired:
|
||||
|
||||
|
||||
logger.info("URL import: {}".format(self.request.id))
|
||||
logger.info("URL import: {}".format(self.request.id) + " force " + str(force))
|
||||
|
||||
|
||||
# clean url
|
||||
|
@ -300,7 +300,7 @@ def update_from_source(request, pk):
|
||||
if url is None:
|
||||
messages.warning(request, _("The event cannot be updated because the import process is not available for the referenced sources."))
|
||||
else:
|
||||
import_events_from_url.delay(url, None, True, user_id=request.user.pk if request.user else None)
|
||||
import_events_from_url.delay(url, None, None, True, user_id=request.user.pk if request.user else None)
|
||||
messages.success(request, _("The event update has been queued and will be completed shortly."))
|
||||
|
||||
return HttpResponseRedirect(event.get_absolute_url())
|
||||
|
Loading…
Reference in New Issue
Block a user