Skip to content

Commit

Permalink
Add the primary key to Flask admin to make it possible to lookup queries
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Jul 27, 2015
1 parent 27639f8 commit 9b6edde
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 9b6edde

Please sign in to comment.