Skip to content

Commit 3d98ff5

Browse files
committed
Merge fixes
1 parent 8a11328 commit 3d98ff5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

db/columns.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def table_(self):
8888
Returns the current table the column is associated with if it exists, otherwise
8989
returns the table the column was originally created from.
9090
"""
91-
if hasattr(self, "table"):
91+
if hasattr(self, "table") and self.table is not None:
9292
return self.table
93-
elif hasattr(self, "original_table"):
93+
elif hasattr(self, "original_table") and self.original_table is not None:
9494
return self.original_table
9595
return None
9696

@@ -146,6 +146,8 @@ def column_index(self):
146146

147147
@property
148148
def default_value(self):
149+
print(self.table_)
150+
print(self.original_table)
149151
if self.table_ is not None:
150152
table_oid = tables.get_oid_from_table(
151153
self.table_.name, self.table_.schema, self.engine

mathesar/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class Meta:
9393
model = Table
9494
fields = ['id', 'name', 'schema', 'created_at', 'updated_at',
9595
'columns', 'records_url', 'constraints_url', 'columns_url',
96-
'data_files', 'has_dependencies']
96+
'data_files', 'has_dependencies', 'import_verified']
9797

9898
def get_records_url(self, obj):
9999
if isinstance(obj, Table):

0 commit comments

Comments
 (0)