Re: Link to different URLs by Class

2008-05-19 Thread Alex Baker
Okay, so I've got get_absolute_url() to work, but I'm still running into some trouble. The problem is that TVEpisode and Movie are both subclasses of Source, and I can't seem to override the get_absolute_url() function that's included in the Source class. How can I override this method in the pare

Re: Link to different URLs by Class

2008-05-19 Thread Alex Baker
Okay, so I finally found get_absolute_url(), and I wrote the function, but I think I might have to back off from generic views because I need the actual source object whereas I now only have a copy of the quote object in the view. I'll have to look into this some more. I was worried at first abou

Link to different URLs by Class

2008-05-19 Thread Alex
I'd like to make a link to an item based on which class it is in. I'm creating a quotes database that has quotes from movies, tv shows, etc. Movie, TVShow, etc. are all separate classes, and they have separate URLs for viewing them. I'm trying to create a link to the source based on which subclass