docs
0
# Event System
1
2
Event management system for organizing meetings, conferences, workshops, and other business events with participant management and scheduling integration.
3
4
## Capabilities
5
6
### Event Management
7
8
Core event entity for managing business events and gatherings.
9
10
```python { .api }
11
class AbstractEvent(CremeEntity):
12
"""
13
Abstract base class for events.
14
15
Fields:
16
- name: Event name/title
17
- type: Event type classification (EventType)
18
- start_date: Event start date and time
19
- end_date: Event end date and time
20
- place: Event location/venue
21
- description: Event description and details
22
"""
23
24
class Event(AbstractEvent):
25
"""Default concrete event model."""
26
27
def get_event_model():
28
"""Returns the active Event model for this project."""
29
30
def event_model_is_custom() -> bool:
31
"""Returns True if custom Event model is configured."""
32
```
33
34
### Event Classification
35
36
Event type system for categorizing different kinds of events.
37
38
```python { .api }
39
class EventType(CremeModel):
40
"""Event type classification (Meeting, Conference, Workshop, etc.)."""
41
```
42
43
## Imports
44
45
```python
46
from creme.events import get_event_model, event_model_is_custom
47
from creme.events.models import Event, EventType, AbstractEvent
48
```
49
50
## Settings Configuration
51
52
Configure event models in settings.py:
53
54
```python
55
# Event model settings
56
EVENTS_EVENT_MODEL = 'events.Event' # Default event model
57
EVENTS_EVENT_FORCE_NOT_CUSTOM = False
58
```