Skip to content

UUID's as logentry PK #749

@lokeshwarobuli

Description

@lokeshwarobuli

Is there any option to have UUID's as primary key for the logentry table, I tried overriding but got django.core.exceptions.FieldError: Local field 'id' in class 'LogEntry' clashes with field of the same name from base class 'LogEntry'.

when I tried to do something like below

from auditlog.models import LogEntry as AuditlogLogEntry
class LogEntryManager(AuditlogLogEntry):

id = models.UUIDField(
        primary_key=True,
        unique=True,
        default=uuid.uuid4,
        editable=False,
    )

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions