Update RepositoryForm for LocalSiteAwareModelFormMixin.
Review Request #10371 — Created Jan. 2, 2019 and submitted
RepositoryFormto use the new
LocalSiteAwareModelFormMixin, providing automatic validation of
related objects and the ability to limit choices to a
simplifies a complex form just a bit, helping making it less likely that
a Local Site leak will occur down the road.
The largest part of this change is the introduction of new unit tests
that ensure that the form can be limited to a
problems. Otherwise, it's mostly about inheriting from the mixin,
removing old (redundant and slow) validation logic, and removing some
now unnecessary state tracking.
Unit tests pass.
Tested manually creating and modifying repositories, including changing