Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed 'package' to 'grid_package' in view as it risks clashing with…

… other variable.
  • Loading branch information...
commit 4078a29ced529dcab8e419b9fa236fdacf48f134 1 parent d207f4c
@akavlie authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 apps/grid/views.py
View
4 apps/grid/views.py
@@ -182,11 +182,11 @@ def add_grid_package(request, grid_slug, template_name="grid/add_grid_package.ht
GridPackage.objects.get(grid=grid, package=package)
message = "Sorry, but '%s' is already in this grid." % package.title
except GridPackage.DoesNotExist:
- package = GridPackage(
+ grid_package = GridPackage(
grid=grid,
package=package
)
- package.save()
+ grid_package.save()
redirect = request.POST.get('redirect','')
if redirect:
return HttpResponseRedirect(redirect)
Please sign in to comment.
Something went wrong with that request. Please try again.