Commit 3ded0b33 authored by fred's avatar fred

sync to nonstop directories after nonstop zones have been set

parent 12dffd09
......@@ -210,10 +210,10 @@ class UploadTracksView(FormView):
defaults={'uploader': self.request.user})
nonstop_file.track = track
nonstop_file.save()
nonstop_file.track.sync_nonstop_zones()
if request.POST.get('nonstop_zone'):
track.nonstop_zones.add(
Nonstop.objects.get(id=request.POST.get('nonstop_zone')))
nonstop_file.track.sync_nonstop_zones()
messages.info(self.request, '%d new track(s)' % len(tracks))
return self.form_valid(form)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment