Re: Raw sql and admin site

2010-07-30 Thread Spoksss
# model class class Category(models.Model): CATEGORY_SEPARATOR = "." name = models.CharField(_('name'), max_length=255) idname = models.CharField(_('idname'), max_length=255, db_index=True, unique=True,) prio = models.IntegerField(_('prio'), default=0) description = models.Tex

Raw sql and admin site

2010-07-29 Thread Spoksss
Hi, I try to use raw sql in admin site, it is possible somehow? I use postresql and have some problem with ordering. I have in database something like: Category(id=1, name='first', parent_category=None, materialised_path='1') Category(id=2, name='child1 of first', parent_category=1, materialised

Strange problem with QuerySet

2009-09-02 Thread Spoksss
Hi, I have very strange problem with simple QuerySet. I get error just on one of servers, and I realy don't know why. When I use very simple code like: Model.objects.filter(is_published=True) I get stupid error: "Cannot resolve keyword 'is_published' into field. Choices are: id, is_published,

Re: Using just one custom manager

2008-11-21 Thread Spoksss
Hello, I have the same problem with entry_set in my related_manager. On 8 Lis, 05:32, John M <[EMAIL PROTECTED]> wrote: > DR, > > Now I have a new problem.  When I use this as a related_manager > (Report.objects.all()[0].task_set.accomplishments()) it returns all > the accomplishments.  I've eve