class ElementsTable(Table, tablename="meta_elements", schema=AppConfig.DB_SCHEMA):
classification_code = ForeignKey(
references=ClassificationsTable,
target_column=ClassificationsTable.code,
on_delete=OnDelete.cascade,
on_update=OnUpdate.cascade,
required=True,
null=False
)
class ClassificationsTable(Table, tablename="meta_classifications", schema=AppConfig.DB_SCHEMA):
...
# other tables omitted due to irrelevance
Piccolo-admin produces the following output in the web GUI:
You can witness the double "Meta Classifications" table in the tables list.
I have verified, that when the ForeignKey column type is replaced with any other column type (Varchar, Integer, etc.),
a duplicate entry is not introduced into the tables list of the admin web GUI.
Given the following table definitions:
Piccolo-admin produces the following output in the web GUI:![image](https://github.com/piccolo-orm/piccolo_admin/assets/6948036/4eae19f1-f9b9-415d-a42a-2f28fddc9737)
You can witness the double "Meta Classifications" table in the tables list.
I have verified, that when the ForeignKey column type is replaced with any other column type (Varchar, Integer, etc.),
a duplicate entry is not introduced into the tables list of the admin web GUI.