On Mon, Sep 14, 2009 at 12:45 PM, Patrick J McNerthney <pmcnerth...@clearpointmetrics.com> wrote: > I am new to Django and am deep in the middle of my first major project > using Django. When I encountered get_absolute_url, my reaction was, > "What were they thinking!". Why does the model have any knowledge about > it's presentation? What if that very same model object is used for two > completely separate purposes in two different applications?
Then you'd want something more complicated to handle that. But, really, "where does this object live" is a question the object itself ought to be able to answer. One can argue endlessly about the name, API, return values, etc., etc., but the fact remains that there's a valid problem whose valid solution is "ask the object". And so, like Jacob, I'd really like to start seeing actual *code* to try to improve the way that gets done, rather than the endless bikeshedding this thread seems to be headed for. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---