Re: Cannot call a custom model method in my view

2009-04-13 Thread Daniel Roseman
On Apr 11, 11:10 pm, codecowboy wrote: > Thank you Daniel.  I got it working.  That link that you gave me > helped me to figure it out.  I'm curious though, is there ever a > reason in Django to define a method in a model class or would I always > use a custom manager method? It's frequently use

Re: Cannot call a custom model method in my view

2009-04-11 Thread codecowboy
Thank you Daniel. I got it working. That link that you gave me helped me to figure it out. I'm curious though, is there ever a reason in Django to define a method in a model class or would I always use a custom manager method? I'm going to post my code here for anyone who has the same question

Re: Cannot call a custom model method in my view

2009-04-11 Thread Daniel Roseman
On Apr 11, 9:25 pm, codecowboy wrote: > I've read some other posts regarding this issue as well as the > following article:http://www.b-list.org/weblog/2007/nov/03/working-models/. > I cannot seem to get this thing to work.  Thank you in advance for any > help.  Here is my code. > > -- vi

Cannot call a custom model method in my view

2009-04-11 Thread codecowboy
I've read some other posts regarding this issue as well as the following article: http://www.b-list.org/weblog/2007/nov/03/working-models/. I cannot seem to get this thing to work. Thank you in advance for any help. Here is my code. -- view -- from django.db.models import get_mo