Django-eventlog

Latest version: v2.0

Safety actively analyzes 619566 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.1

- The format and value of the random group id can now be specified using the AppConfig.
- Various improvements to make the Event model swappable via the AppConfig.
- Switch development tooling from Pipenv to Poetry

2.0

- Overall test and code refactor.
- Documentation now done with MKDocs.
- Timeline in Admin change form now supports delays of days and hours, instead of just minutes.
- *Backwards incompatible:* Removed undocumented `Event.objects.purge()` queryset method.
- *Backwards incompatible:* The list of event types defined in the app config is now
set via Python dataclasses rather than a dictionary. The migration is straightforward.

python
event_types = {
"info": {
"label": _("Info"),
"color": None,
"bgcolor": None,
},
"warning": {
"label": _("Warning"),
"color": None,
"bgcolor": None,
},
...
}


The dictionary is now a `EventTypeList` of `EventType` dataclasses:

python
from django.utils.translation import gettext_lazy as _
from eventlog.datastructures import EventType, EventTypeList

List of event types to be used in events. A list of `EventType` classes
event_types = EventTypeList(
EventType(name="info", label=_("Info")),
EventType(name="warning", label=_("Warning")),
EventType(name="error", label=_("Error"), color="red"),
EventType(name="critical", label=_("Critical"), color="white", bgcolor="red"),
)


You will only need to do this change if you've earlier overridden the event_type property.

1.5

- Event can have optional, JSON serializable data attached.
- Fixed dark mode colors.
- Various Admin UI improvements.

1.4

- Event groups can now have arbitrary names instead of UUIDs.
- Event comments is a textfield.
- Fixed potential migration warnings around AutoFields.

1.3

- Python 3.12 compatibility
- Django 5.0 support
- Type Annotations

1.2

- Python 3.7 to 3.11 compatibility
- Django 3.2 to 4.2 support

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.