return HttpResponseForbidden("Forbidden -- Trying to view somebody else's character")
return render_to_response('influences/character_detail.html', {'object' : o}, RequestContext(request))
+@login_required
+def influence_list(request):
+ os = Influence.objects.filter(character__player=request.user)
+ return render_to_response('influences/influence_list.html', {'object_list' : os}, RequestContext(request))
+
@login_required
def influence_detail(request, object_id):
o = Influence.objects.get(pk=object_id)
url(r'^admin/', include('django.contrib.admin.urls')),
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/(?P<object_id>\d+)/$', 'ee.influences.views.influence_detail', name='influences_influence_detail'),
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'),