From a288066fafa4d427028cba8583c5a3bcf5491ccf Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 20 Sep 2010 10:31:51 -0500 Subject: Update news permission required string When moving the news model and updating the content type, I forgot to update these strings to reflect the new permission name. Whoops. Signed-off-by: Dan McGee --- news/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'news') diff --git a/news/views.py b/news/views.py index cc16981..d7148d5 100644 --- a/news/views.py +++ b/news/views.py @@ -28,7 +28,7 @@ class NewsForm(forms.ModelForm): model = News exclude=('id', 'author', 'postdate') -@permission_required('main.add_news') +@permission_required('news.add_news') @never_cache def add(request): if request.POST: @@ -42,7 +42,7 @@ def add(request): form = NewsForm() return direct_to_template(request, 'news/add.html', { 'form': form }) -@permission_required('main.delete_news') +@permission_required('news.delete_news') @never_cache def delete(request, newsid): return create_update.delete_object(request, @@ -52,7 +52,7 @@ def delete(request, newsid): template_name='news/delete.html', template_object_name='news') -@permission_required('main.change_news') +@permission_required('news.change_news') @never_cache def edit(request, newsid): return create_update.update_object(request, @@ -60,7 +60,7 @@ def edit(request, newsid): form_class=NewsForm, template_name="news/add.html") -@permission_required('main.change_news') +@permission_required('news.change_news') @never_cache def preview(request): markup = '' -- cgit v1.2.3-24-g4f1b