diff --git a/AUTHORS b/AUTHORS index ad5b9f8..258eadd 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1 +1,2 @@ -Jannis Leidel \ No newline at end of file +Jannis Leidel +Martin Mahner diff --git a/MANIFEST.in b/MANIFEST.in index a63229b..90fe85a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,6 @@ +include AUTHORS include LICENSE +include buildout.cfg +include buildout.py recursive-include src/authority/templates/authority * recursive-include src/authority/templates/admin * diff --git a/src/authority/views.py b/src/authority/views.py index 2271784..9583f38 100644 --- a/src/authority/views.py +++ b/src/authority/views.py @@ -27,7 +27,7 @@ def add_permission(request, app_label, module_name, pk, extra_context={}, return HttpResponseForbidden(next) model = get_model(app_label, module_name) if model is None: - return HttpResponseRedirect(next) + return permission_denied(request) obj = get_object_or_404(model, pk=pk) form = UserPermissionForm(data=request.POST, obj=obj, perm=codename, initial={'codename': codename})