Skip to content

Commit

Permalink
Merge pull request #511 from stanhu/add-primary-key-to-flask-admin
Browse files Browse the repository at this point in the history
Add the primary key to Flask admin to make it possible to lookup queries
  • Loading branch information
arikfr committed Jul 27, 2015
2 parents e458ed0 + 9b6edde commit 22200ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redash/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def handle_datetime_tz_field(self, model, field, **kwargs):


class BaseModelView(ModelView):
column_display_pk = True
model_form_converter = PgModelConverter

@require_permission('admin')
Expand Down

0 comments on commit 22200ec

Please sign in to comment.