Skip to content

Commit

Permalink
Changing default sort order for databases
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Dec 8, 2015
1 parent 2833bd3 commit d526711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panoramix/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ class MetricInlineView(CompactCRUDMixin, PanoramixModelView):

class DatabaseView(PanoramixModelView, DeleteMixin):
datamodel = SQLAInterface(models.Database)
list_columns = ['database_name', 'created_by', 'created_on']
list_columns = ['database_name', 'created_by', 'changed_on']
add_columns = ['database_name', 'sqlalchemy_uri']
search_exclude_columns = ('password',)
edit_columns = add_columns
add_template = "panoramix/models/database/add.html"
edit_template = "panoramix/models/database/edit.html"
base_order = ('changed_on','desc')
description_columns = {
'sqlalchemy_uri': (
"Refer to the SqlAlchemy docs for more information on how "
Expand Down

0 comments on commit d526711

Please sign in to comment.