Looks like we were writing at the same time. I also was not aware you could call a model method in a template without the parenthesis, that's where I was getting hung up.
Again thank you. On Aug 24, 3:54 pm, Javier Guerra <jav...@guerrag.com> wrote: > On Mon, Aug 24, 2009 at 5:37 PM, Merrick<merr...@gmail.com> wrote: > > Do you know if there is a way to have url.domain return what > > stripdomain() did above? Otherwise I'll use a template filter and move > > on. > > no need for a filter, {{url.stripdomain}} will call url.stripdomain() > > or, you could set url.stripdomain() as a property: > > class ......: > ... > @property > def stripdomain(self): > ..... > > -- > Javier --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---