Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1609 closed defect (invalid)

Typo in db/models/query.py

Reported by: gael.dev@… Owned by: adrian
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: UI/UX:

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@… 9 years ago.
Simple typo patch

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by gael.dev@…

Simple typo patch

comment:1 Changed 9 years ago by adrian

  • Resolution set to invalid
  • Status changed from new to closed

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

comment:2 Changed 9 years ago by gael

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 Changed 9 years ago by adrian

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

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