Commit c9ee0e75 authored by Taddeus Kroes's avatar Taddeus Kroes

Added id to select fields.

parent 8f371157
......@@ -123,7 +123,8 @@ class Model(object):
relopts = kwargs
if self.options.get('create_select', True):
relopts['select'] = ', '.join(model.accessible_attr)
relopts['select'] = PRIMARY_KEY + ', ' \
+ ', '.join(model.accessible_attr)
return relopts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment