trivial: fix variable name used for invalid group_by_time (#52603)
This commit is contained in:
parent
d658eba701
commit
92a1eeaaad
|
@ -122,7 +122,7 @@ class EventTypeDefinition(metaclass=EventTypeDefinitionMeta):
|
|||
end=None,
|
||||
):
|
||||
if group_by_time not in ('timestamp', 'day', 'month', 'year'):
|
||||
raise ValueError('Usupported value for group_by_time: %s' % time_group_by)
|
||||
raise ValueError('Usupported value for group_by_time: %s' % group_by_time)
|
||||
|
||||
event_type = EventType.objects.get_for_name(cls.name)
|
||||
qs = Event.objects.filter(type=event_type)
|
||||
|
|
Loading…
Reference in New Issue