Skip to content

Commit

Permalink
added query class method to Model
Browse files Browse the repository at this point in the history
  • Loading branch information
bart mosley committed Aug 23, 2011
1 parent af737d5 commit 648feb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def get(cls, _obj_pk=None, **kwargs):

@classmethod
def query(cls, sql_text, values=()):
return Query.raw_sql(sql_txt, values, cls.db)
return Query.raw_sql(sql_text, values, cls.db)

@property
def fields(self):
Expand Down

0 comments on commit 648feb1

Please sign in to comment.