def setUp(self):
defaults.project.save()
self.patch_author = Person(name = self.patch_author_name,
- email = defaults.patch_author_person.email)
+ email = defaults.patch_author_person.email)
self.patch_author.save()
self.patch_content = read_patch(self.patch_filename,
encoding = self.patch_encoding)
patch_author = 'Patch Author <patch-author@example.com>'
patch_author_person = Person(name = 'Patch Author',
- email = 'patch-author@example.com')
+ email = 'patch-author@example.com')
comment_author = 'Comment Author <comment-author@example.com>'
form = DeleteBundleForm(request.POST)
if form.is_valid():
bundle = get_object_or_404(Bundle,
- id = form.cleaned_data['bundle_id'])
+ id = form.cleaned_data['bundle_id'])
bundle.delete()
bundles = Bundle.objects.filter(owner = request.user)
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