Do you really need the team_id to specify the result you are looking for?
I'm guessing you probably have a single results table (with results from all
teams), and the 2nd number in the url is all you need to select the result
in question.  Then:

(r'^team/(?P<team_id>[0-9]+)/results/(?P<object_id>[0-9]+)/$',
'django.views.generic.list_detail.object_detail', dict(results_dict,
template_name='teams/team_results_reports.html')

would work.  Here the first number (captured as team_id) is not going to be
used for anything by the generic views code.  In fact you don't need it in
the url at all, and you could use something along the lines of
r'^results/(?P<object_id>[0-9]+)/$'
for your urls.  As you are doing it now you are sort of leaving breadcrumbs
in the url to indicate how you got to a particular result detail page....

[Of course if my assumptions about your model setup are wrong, this is all
nonsense, and what you probably need to do is write your own views instead
of using generic views.]

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to