jsfenfen / 990-xml-database

Django app to consume and store 990 data and metadata
BSD 2-Clause "Simplified" License
23 stars 16 forks source link

duplicate models in generated schemas #3

Closed jsfenfen closed 6 years ago

jsfenfen commented 6 years ago

report that duplicate models are in the generated schemas? I've been ignoring the warnings on this, didn't even bother to look at the (admittedly gnarly) files.

jsfenfen commented 6 years ago

https://github.com/jsfenfen/990-xml-database/blob/master/irsdb/metadata/management/commands/generate_schemas_from_metadata.py#L134

It looks like we need to add 'versions__contains=CANONICAL_VERSION' as an additional filter.