MCPcopy
hub / github.com/uselotus/lotus / get_object

Method get_object

backend/metering_billing/views/model_views.py:1199–1206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1197 }
1198
1199 def get_object(self):
1200 string_uuid = self.kwargs[self.lookup_field]
1201 if "plan_" in string_uuid:
1202 uuid = PlanUUIDField().to_internal_value(string_uuid)
1203 else:
1204 uuid = AddOnUUIDField().to_internal_value(string_uuid)
1205 self.kwargs[self.lookup_field] = uuid
1206 return super().get_object()
1207
1208 def get_queryset(self):
1209 qs = super().get_queryset()

Callers 15

updateMethod · 0.95
deleteMethod · 0.95
add_tagsMethod · 0.95
remove_tagsMethod · 0.95
set_tagsMethod · 0.95
add_featureMethod · 0.95
rollMethod · 0.45

Calls 3

PlanUUIDFieldClass · 0.90
AddOnUUIDFieldClass · 0.90
to_internal_valueMethod · 0.45

Tested by

no test coverage detected