Le 12 sept. 2009 à 15:20, Jacob Kaplan-Moss a écrit :

>
> On Sat, Sep 12, 2009 at 8:42 AM, Thomas K. Adamcik  
> <tadam...@gmail.com> wrote:
>> In essence we could add only one new method to the API that returns a
>> URL-object that provides access to the data:
>
> I like this idea a lot. It solves most of the problems I have with
> get_absolute_url:
>
> * I dislike the name -- far too verbose. Why not just `obj.url()`?

Note this option will break a lot of models with an existing url field  
(that's just a warning, as a devil's advocate, I'm not fond of the  
current name too...).

Regards,
David


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to