projects
/
matthijs
/
projects
/
xerxes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
963e2c8
)
* Set a default value for the character_id argument to the add view.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Sun, 27 Jan 2008 16:02:32 +0000
(17:02 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Sun, 27 Jan 2008 16:02:32 +0000
(17:02 +0100)
influences/views.py
patch
|
blob
|
history
diff --git
a/influences/views.py
b/influences/views.py
index 184a3a3957271a7a988efac2f56cbedb1c76dcd4..4df518f6a2902143dd65ef22c30908555b9f90ba 100644
(file)
--- 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()