UW-GAC / django-anvil-consortium-manager

Django app to manage AnVIL workspace permissions
https://django-anvil-consortium-manager.readthedocs.io/en/latest/index.html
MIT License
1 stars 0 forks source link

Fix 0014 migration for permission objects that don't exist #437

Closed amstilp closed 12 months ago

amstilp commented 12 months ago

It's possible that the limited_view permission does not exist when someone runs the 0014 migration, since that permission was added later. Wrap the permission updating in a try/except statement to handle permissions that don't exist.