summaryrefslogtreecommitdiffstats
path: root/apps/patchwork/views/bundle.py
diff options
context:
space:
mode:
authorDirk Wallenstein <halsmit@t-online.de>2011-01-12 23:05:08 +0000
committerJeremy Kerr <jk@ozlabs.org>2011-02-11 08:52:19 +0800
commitbf0aef79a1e5b1d0b78c10df4a610b0a7b2d365f (patch)
tree44b099a890adbbbab26df53bcde11c111749e2f9 /apps/patchwork/views/bundle.py
parent9dee7bf3a168d7662709b5e0fba04ef34e05c01e (diff)
downloadpatchwork-bf0aef79a1e5b1d0b78c10df4a610b0a7b2d365f.tar.bz2
patchwork-bf0aef79a1e5b1d0b78c10df4a610b0a7b2d365f.tar.xz
Replace tab in indentation with space
Signed-off-by: Dirk Wallenstein <halsmit@t-online.de> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/views/bundle.py')
-rw-r--r--apps/patchwork/views/bundle.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/patchwork/views/bundle.py b/apps/patchwork/views/bundle.py
index 18beb08..62b50d4 100644
--- a/apps/patchwork/views/bundle.py
+++ b/apps/patchwork/views/bundle.py
@@ -110,17 +110,17 @@ def bundles(request):
if request.method == 'POST':
form_name = request.POST.get('form_name', '')
- if form_name == DeleteBundleForm.name:
- form = DeleteBundleForm(request.POST)
- if form.is_valid():
- bundle = get_object_or_404(Bundle,
- id = form.cleaned_data['bundle_id'])
- bundle.delete()
+ if form_name == DeleteBundleForm.name:
+ form = DeleteBundleForm(request.POST)
+ if form.is_valid():
+ bundle = get_object_or_404(Bundle,
+ id = form.cleaned_data['bundle_id'])
+ bundle.delete()
bundles = Bundle.objects.filter(owner = request.user)
for bundle in bundles:
bundle.delete_form = DeleteBundleForm(auto_id = False,
- initial = {'bundle_id': bundle.id})
+ initial = {'bundle_id': bundle.id})
context['bundles'] = bundles
@@ -174,7 +174,7 @@ def mbox(request, bundle_id):
bundle = get_object_or_404(Bundle, id = bundle_id)
response = HttpResponse(mimetype='text/plain')
response['Content-Disposition'] = 'attachment; filename=bundle-%d.mbox' % \
- bundle.id
+ bundle.id
response.write(bundle.mbox())
return response