Commit 4e330484 authored by Serge S. Koval's avatar Serge S. Koval

Foreign columns should not be displayed in a list view

parent 30a1f9bf
......@@ -333,6 +333,9 @@ class ModelView(BaseModelView):
else:
column = p.columns[0]
if column.foreign_keys:
continue
if not self.column_display_pk and column.primary_key:
continue
......
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