Skip to content

Commit

Permalink
Desperatly changing view name to avoid proxy odd bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 11, 2016
1 parent 88b8f73 commit baac8c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions panoramix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class SqlaTable(Model, Queryable, AuditMixinNullable):
'Database', backref='tables', foreign_keys=[database_id])
offset = Column(Integer, default=0)

baselink = "tableview"
baselink = "tablemodelview"

def __repr__(self):
return self.table_name
Expand All @@ -315,7 +315,7 @@ def description_markeddown(self):

@property
def url(self):
return '/tableview/edit/{}'.format(self.id)
return '/tablemodelview/edit/{}'.format(self.id)

@property
def link(self):
Expand Down
2 changes: 1 addition & 1 deletion panoramix/templates/panoramix/models/database/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$.each(data, function(i, d){
var id = 'tbl_' + d;
div.append('<span id="' + id + '" style="margin: 0px 10px 10px 0px;" class="btn btn-default">' + d + '</span>')
$('#' + id).click(function(){window.location = '/tableview/add';})
$('#' + id).click(function(){window.location = '/tablemodelview/add';})
});
}).fail(function(error) {
alert("ERROR: " + error.responseText);
Expand Down
4 changes: 2 additions & 2 deletions panoramix/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def pre_update(self, db):
category_icon='fa-database',)


class TableView(PanoramixModelView, DeleteMixin):
class TableModelView(PanoramixModelView, DeleteMixin):
datamodel = SQLAInterface(models.SqlaTable)
list_columns = [
'table_link', 'database', 'sql_link', 'changed_by_', 'changed_on_']
Expand Down Expand Up @@ -176,7 +176,7 @@ def post_update(self, table):
self.post_add(table)

appbuilder.add_view(
TableView,
TableModelView,
"Tables",
category="Sources",
icon='fa-table',)
Expand Down

0 comments on commit baac8c4

Please sign in to comment.