openSUSE / orthos2

Orthos is a machine administration tool.
GNU General Public License v2.0
14 stars 13 forks source link

Fix invalid Relationship for DomainAdmin in the backend #231

Closed SchoolGuy closed 3 months ago

SchoolGuy commented 9 months ago

From the output of our CI:

<class 'orthos2.data.admin.DomainAdmin'>: (admin.E013) The value of 'filter_horizontal[0]' cannot include the ManyToManyField 'supported_architectures', because that field manually specifies a relationship model.

The issue is described in the following Django ticket: https://code.djangoproject.com/ticket/34345

The check is documented here: https://docs.djangoproject.com/en/5.0/ref/checks/#models

The check was introduced recently with https://github.com/django/django/pull/16983

SchoolGuy commented 3 months ago

This was fixed with #258