James Bennett schrieb:
> Then why did the original email say that it would "tie the urls to the
> field names in the model"?
Let's suppose you have an url config like this (current syntax, urls.py):
urlpatterns = patterns('mailadmin.views',
(r'^(?P<id>[1-9]\d*), 'edit_foobar')),
# ...
)
Then you'd have to match the 'id' group to the id field of whatever
you're going to edit. So, if you later change to rename this field, you
have to change url configuration, which is not nice.
Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers
-~----------~----~----~----~------~----~------~--~---