I've recently deployed my first non-trivial (by my standards) world
accessible django app. Its not perfect. However, there comes a point
when you just have to get'er done, and so it is.

I bugged a lot of people on #django and got some good feedback, but
just couldn't communicate my question well enough without a visual. So
here it is: http://webapps.ubuntu.com/course_locator/

Click on Canada, and see what would ideally be a cross tab.

The problem is, I'd like to have the event dates for training events
for the same course in the same town on the same row (notice that
several rows there differ only in the fact that the training date is
in August instead of July). I know how to do this in SQL just fine,
but as I've found, the SQL way is not always the ideal way in Django.

I'm happy to share my model and view code, but just imagine a non-
normalized, ultra-simple model, and that's what I've done. (two
models, Partners and Events)

The end goal is to display all events in the next three months for a
given country.

Can anyone share some suggestions on how to get a cross tab the Django
way?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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