rest_witchcraft.generics module

class rest_witchcraft.generics.GenericAPIView(**kwargs)[source]

Bases: rest_framework.generics.GenericAPIView

Base class for sqlalchemy specific views.

classmethod get_model()[source]

Returns the model class.

get_object()[source]

Returns the object the view is displaying.

We ignore the lookup_field and lookup_url_kwarg values only when tere are multiple primary keys

get_session()[source]

Returns the session.