Service instantiation #31

Merged
rixx merged 37 commits from 24-service-instantiation into main 2025-04-04 10:57:29 +00:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit 8b63d78633 - Show all commits

View file

@ -49,7 +49,7 @@ class Organization(ServalaModelMixin, models.Model):
base = "/org/{self.slug}/"
details = "{base}details/"
services = "{base}services/"
services = "{base}instances/"
instances = "{base}instances/"
@cached_property
def slug(self):

View file

@ -320,8 +320,8 @@ class ControlPlaneCRD(ServalaModelMixin, models.Model):
)
class Meta:
verbose_name = _("Service offering control plane connection")
verbose_name_plural = _("Service offering control planes connections")
verbose_name = _("ControlPlane CRD")
verbose_name_plural = _("ControlPlane CRDs")
unique_together = [("service_offering", "control_plane")]
def __str__(self):

View file

@ -27,7 +27,7 @@ class VerticalFormRenderer(TemplatesSetting):
def get_widget_input_type(self, widget):
if isinstance(widget, Textarea):
return "textarea"
return widget.input_type
return getattr(widget, "input_type", None)
def get_field_input_type(self, field):
widget = field.field.widget