Django Rrweb API Reference

Models

class django_rrweb.models.Event(id, create_time, user, kind, data, timestamp, session_key)[source]
exception DoesNotExist
exception MultipleObjectsReturned
class django_rrweb.models.Session(session_key, create_time, user, timestamp, duration, event_count, event_size)[source]
exception DoesNotExist
exception MultipleObjectsReturned

Middleware

django_rrweb.middleware.session_key_middleware(get_response)[source]

Session key middleware

Admin

class django_rrweb.admin.EventAdmin(model, admin_site)[source]
class django_rrweb.admin.SessionAdmin(model, admin_site)[source]
has_add_permission(request)[source]

Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.

has_change_permission(request, obj=None)[source]

Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.

Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to change the obj model instance. If obj is None, this should return True if the given request has permission to change any object of the given type.

has_delete_permission(request, obj=None)[source]

Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.

Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.

Views

django_rrweb.views.record(request)[source]

Record event