MCPcopy Create free account
hub / github.com/HackSoftware/Django-Styleguide-Example / get_object

Function get_object

styleguide_example/common/utils.py:11–19  ·  view source on GitHub ↗

Reuse get_object_or_404 since the implementation supports both Model && queryset. Catch Http404 & return None

(model_or_queryset, **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

user_getFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected