djai.util.views module

DjAI Django views-related utilities.

class djai.util.views.LookUpByUniqueNameOrUUIDMixin[source]

Bases: object

A mix-in to look up Django model object by UUID or Unique Name.

get_object() Union[django.db.models.base.Model, django.http.response.Http404][source]

Get Django model object by UUID or Unique Name.