fields = ('name')
@login_required
-def add(request, character_id=None):
+def add_influence(request, character_id=None):
initial = {}
# Get the current user's characters
chars = request.user.character_set.all()
return render_to_response('influences/add.html', {'form' : f}, RequestContext(request))
@login_required
-def addCharacter(request):
+def add_character(request):
f = CharacterForm(request=request)
if (f.is_valid()):
character = f.save(commit=False)
url(r'^influences/$', 'ee.influences.views.index', name='influences_index'),
url(r'^influences/influence/$', 'ee.influences.views.influence_list', name='influences_influence_list'),
url(r'^influences/influence/(?P<object_id>\d+)/$', 'ee.influences.views.influence_detail', name='influences_influence_detail'),
- url(r'^influences/influence/add/(\d+)/$', 'ee.influences.views.add', name='influences_add_influence_for_character'),
- url(r'^influences/influence/add/$', 'ee.influences.views.add', name='influences_add_influence'),
+ url(r'^influences/influence/add/(\d+)/$', 'ee.influences.views.add_influence', name='influences_add_influence_for_character'),
+ url(r'^influences/influence/add/$', 'ee.influences.views.add_influence', name='influences_add_influence'),
url(r'^influences/character/$', 'ee.influences.views.character_list', name='influences_character_list'),
url(r'^influences/character/(?P<object_id>\d+)/$', 'ee.influences.views.character_detail', name='influences_character_detail'),
- url(r'^influences/character/add/$', 'ee.influences.views.addCharacter', name='influences_add_character'),
+ url(r'^influences/character/add/$', 'ee.influences.views.add_character', name='influences_add_character'),
url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'base/login.html'}, name='login'),
url(r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='logout'),