Skip to content

TypeError: can't compare offset-naive and offset-aware datetimes #150

Open
@aidanlister

Description

@aidanlister
TypeError: can't compare offset-naive and offset-aware datetimes
(7 additional frame(s) were not displayed)
...
  File "rest_framework/mixins.py", line 133, in update
    self.pre_save(serializer.object)
  File "abas/apps/api/views.py", line 106, in pre_save
    self.changed_data = self.object.tracker.changed()
  File "model_utils/tracker.py", line 60, in changed
    for field in self.fields
  File "model_utils/tracker.py", line 61, in <genexpr>
    if self.has_changed(field)
  File "model_utils/tracker.py", line 48, in has_chan
 ged
    return self.previous(field) != self.get_field_value(field)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions