From f3dd167d45ba0e152ad19b1d37f4258e5a9d383f Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sun, 27 Jan 2008 17:02:32 +0100 Subject: [PATCH] * Set a default value for the character_id argument to the add view. --- influences/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influences/views.py b/influences/views.py index 184a3a3..4df518f 100644 --- a/influences/views.py +++ b/influences/views.py @@ -21,7 +21,7 @@ class CharacterForm(ContextModelForm): model = Character fields = ('name') -def add(request, character_id): +def add(request, character_id=None): initial = {} # Get the current user's characters chars = request.user.character_set.all() -- 2.30.2