On Wed, May 28, 2008 at 4:32 AM, sector119 <[EMAIL PROTECTED]> wrote:
> Is it a bug, or I misunderstood something in filter usage?
It looks like you have stray whitespace or line breaks in the middle
of things which should be continuous text. This would, naturally, lead
to strange behavior. For
> SyntaxError: non-keyword arg after keyword arg
>
> "operator__office=self.operator.office" WAS truncated to the
> "operator__" in traceback...
The ORM filter() method uses double underscore "__" in a magic way.
See http://www.djangoproject.com/documentation/db-api/#filtering-objects
Hi All!
My Transaction model have method:
def _get_serial(self):
return
Transaction.objects.filter(commit_date=datetime.date.today(),
operator__office=self.operator.office).count() + 1
CAUSE ERROR
File "/home/sector119/devel/eps_src/eps/apps/transactions/
models.py", line 30
3 matches
Mail list logo