callat-qcd / espressodb

Science database interface using Django as the content manager.
https://espressodb.readthedocs.io
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

[BUG] Duplicate Schemas screws up the +Populate page on the website #83

Open cchang5 opened 3 years ago

cchang5 commented 3 years ago

If I copy the schema to multiple apps, the autogenerated website will only display a code snippet for one of the tables. It will not auto-generate the population script for all the tables with duplicated schemas.

ckoerber commented 3 years ago

Ough, sorry. I somehow just see this issue now. Can you elaborate more, please, so I can try to reproduce the issue?

I take it you use the word schema for children of Django models / EspressoDB Base models? You create a new app inside the same project and copy these models from one app into another? Did you change the names of the copied models? And did you add the new app to the installed apps?