[snowy] In note_detail, default slug argument to ''.



commit bae540ccb21e920396b7bb436b4ba39e2923e4a2
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Mon May 18 08:21:40 2009 -0700

    In note_detail, default slug argument to ''.
---
 notes/views.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/notes/views.py b/notes/views.py
index 0b0edee..b5603a0 100644
--- a/notes/views.py
+++ b/notes/views.py
@@ -37,7 +37,7 @@ def note_index(request, username,
                               {'user': user},
                               context_instance=RequestContext(request))
 
-def note_detail(request, username, note_id, slug,
+def note_detail(request, username, note_id, slug='',
                 template_name='notes/note_detail.html'):
     user = get_object_or_404(User, username=username)
     note = get_object_or_404(Note, pk=note_id, author=user)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]