Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1609 closed defect (invalid)

Typo in db/models/query.py

Reported by: gael.dev@… Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Typo at line 260 of db/models/query.py :

-    def values(self, *fields):
+    def values(self, fields):

Attachments (1)

query_typo.diff (481 bytes ) - added by gael.dev@… 18 years ago.
Simple typo patch

Download all attachments as: .zip

Change History (4)

by gael.dev@…, 18 years ago

Attachment: query_typo.diff added

Simple typo patch

comment:1 by Adrian Holovaty, 18 years ago

Resolution: invalid
Status: newclosed

That's not a typo. It designates that an arbitrary number of positional arguments are allowed.

comment:2 by gael, 18 years ago

hum ok sorry about that.. so the syntax has changed in the magic branch,
xxx.values('id',) instead of xx.get_values(fields=id) ?

comment:3 by Adrian Holovaty, 18 years ago

Yes, that's changed exactly as you've described.

Note: See TracTickets for help on using tickets.
Back to Top