icosa-foundation / icosa-gallery

Icosa Gallery is a 3D model hosting solution, intended as a replacement for Google's Poly
https://icosa.gallery
Apache License 2.0
8 stars 0 forks source link

foreign key for Asset.owner #7

Closed andybak closed 3 months ago

andybak commented 4 months ago

From models.py:

`owner` should be a foreign key, but the production data violates constraints

We could make the field null=True?

Or we could add a data migration that creates a dummy User for assets with no owner and assigns it to every orphaned item?