Hi,
I just discovered, that you can't sort a list of model instances.
This failed with AssertionError:
view_groups=sorted([brg.group for brg in ... ])
change_groups=sorted([...])
if view_groups==change_groups:
...
else:
assert set(view_groups)!=set(change_groups), (view_groups,
change_groups)
Is there a reason why this is this way?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---