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 return Transaction.objects.filter(commit_date=datetime.date.today(), operator__).count() + 1 SyntaxError: non-keyword arg after keyword arg "operator__office=self.operator.office" WAS truncated to the "operator__" in traceback... WORKS GOOD def _get_serial(self): return Transaction.objects.filter(commit_date=datetime.date.today()).filter(operator__office=self. operator.office).count() + 1 Is it a bug, or I misunderstood something in filter usage? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---