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): ...@@ -210,10 +210,10 @@ class UploadTracksView(FormView):
defaults={'uploader': self.request.user}) defaults={'uploader': self.request.user})
nonstop_file.track = track nonstop_file.track = track
if request.POST.get('nonstop_zone'): if request.POST.get('nonstop_zone'):
track.nonstop_zones.add( track.nonstop_zones.add(
Nonstop.objects.get(id=request.POST.get('nonstop_zone'))) Nonstop.objects.get(id=request.POST.get('nonstop_zone')))
nonstop_file.track.sync_nonstop_zones(), '%d new track(s)' % len(tracks)), '%d new track(s)' % len(tracks))
return self.form_valid(form) 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