damned-lies r1193 - in trunk: . people
- From: stephaner svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1193 - in trunk: . people
- Date: Thu, 27 Nov 2008 21:33:55 +0000 (UTC)
Author: stephaner
Date: Thu Nov 27 21:33:55 2008
New Revision: 1193
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1193&view=rev
Log:
2008-11-27 StÃphane Raimbault <stephane raimbault gmail com>
* people/urls.py: Fixed people list.
Modified:
trunk/ChangeLog
trunk/people/urls.py
Modified: trunk/people/urls.py
==============================================================================
--- trunk/people/urls.py (original)
+++ trunk/people/urls.py Thu Nov 27 21:33:55 2008
@@ -1,18 +1,23 @@
from django.conf.urls.defaults import *
from people.models import Person
-info_dict = {
+
+info_dict_list = {
'queryset': Person.objects.all(),
- 'slug_field': 'username',
'template_object_name': 'person',
'extra_context': {
'pageSection': "teams"
}
}
+info_dict_detail = dict(
+ info_dict_list,
+ slug_field = 'username'
+)
+
urlpatterns = patterns('django.views.generic.list_detail',
- url(r'^$', 'object_list', dict(info_dict), 'persons'),
- url(r'(?P<object_id>\d+)/$', 'object_detail', dict(info_dict), 'person'),
+ url(r'^$', 'object_list', dict(info_dict_list), 'persons'),
+ url(r'(?P<object_id>\d+)/$', 'object_detail', dict(info_dict_detail), 'person'),
# equivalent to the previous, but using username instead of user pk
- url(r'(?P<slug>\w+)/$', 'object_detail', dict(info_dict), 'person'),
+ url(r'(?P<slug>\w+)/$', 'object_detail', dict(info_dict_detail), 'person'),
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]