summaryrefslogtreecommitdiff
path: root/news/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-20 10:31:51 -0500
committerDan McGee <dan@archlinux.org>2010-09-20 10:33:31 -0500
commita288066fafa4d427028cba8583c5a3bcf5491ccf (patch)
treecfa852ca8a55f83e7203e0bb5f86717ae6e7e589 /news/views.py
parent7409e1155f8773b2515885886c0165573e2ff4d5 (diff)
Update news permission required stringrelease_2010-09-20
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 <dan@archlinux.org>
Diffstat (limited to 'news/views.py')
-rw-r--r--news/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/news/views.py b/news/views.py
index cc169819..d7148d5b 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 = ''