Skip to content

Commit

Permalink
All fields have unique attribute set to True of False
Browse files Browse the repository at this point in the history
  • Loading branch information
zefciu committed Apr 24, 2013
1 parent 671a05a commit 13e581e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/eplasty/field/base.py
Expand Up @@ -21,6 +21,7 @@ def __init__(self, *args, **kwargs):
self.dependent_fields = []
if 'default' in kwargs:
self._default = kwargs['default']
self.unique = kwargs.get('unique', False)

def __get__(self, inst, cls):
if inst is None:
Expand Down
2 changes: 1 addition & 1 deletion src/eplasty/result.py
Expand Up @@ -28,7 +28,7 @@ def __init__(self, session, cursor, cls, fields):
def __iter__(self):
"""Temporary solution I think"""
return ResultIterator(self)

def fetch(self, count):
"""Fetch ``count`` objects"""
tuple_list = self.cursor.fetchmany(count)
Expand Down

0 comments on commit 13e581e

Please sign in to comment.