Re: custom sql, method definition and views.py

2006-11-15 Thread soundseeker
> > Hello, > > if there is a method definition in the models.py like this: > > > > class TMergeDoc(models.Model): > > > > def by_categories(self): > > from django.db import connection > > ... > > return objects > > > > what is the corresponding call

Re: custom sql, method definition and views.py

2006-11-13 Thread Jean-Luc
soundseeker a écrit : > Hello, > if there is a method definition in the models.py like this: > > class TMergeDoc(models.Model): > > def by_categories(self): > from django.db import connection > ... > return objects > > what is the correspondi

custom sql, method definition and views.py

2006-11-13 Thread soundseeker
Hello, if there is a method definition in the models.py like this: class TMergeDoc(models.Model): def by_categories(self): from django.db import connection ... return objects what is the corresponding call in the views.py? obje