Fix name of related field

This commit is contained in:
Tobias Kunze 2025-03-21 16:36:34 +01:00 committed by Tobias Brunner
parent aadeb58ec5
commit 86fe4ec3ec
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -173,8 +173,8 @@ class PlanAdmin(admin.ModelAdmin):
@admin.register(ServiceOffering)
class ServiceOfferingAdmin(admin.ModelAdmin):
list_display = ("id", "service", "provider")
list_filter = ("service", "provider", "control_plane")
list_filter = ("service", "provider", "control_planes")
search_fields = ("description",)
autocomplete_fields = ("service", "provider")
filter_horizontal = ("control_plane",)
filter_horizontal = ("control_planes",)
inlines = (PlanInline,)

View file

@ -245,7 +245,7 @@ class ServiceOffering(models.Model):
related_name="offerings",
verbose_name=_("Provider"),
)
control_plane = models.ManyToManyField(
control_planes = models.ManyToManyField(
to="ControlPlane",
related_name="offerings",
verbose_name=_("Control planes"),