Skip to content

Commit

Permalink
added fields property to Model
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Mosley authored and Bart Mosley committed Aug 10, 2011
1 parent a0e6028 commit 4f1e0df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ def get(cls, _obj_pk=None, **kwargs):

return Query(model=cls, conditions=kwargs)

@property
def fields(self):
return self._fields

class ValidationError(Exception):
pass

Expand Down

0 comments on commit 4f1e0df

Please sign in to comment.