Skip to content

issue: when restoring data with loaddata, need to change the LogEntry to allow creation of new objects #4

@0xcad

Description

@0xcad

problem:

when the user wants to restore from a backup, they can't, because the presave handler on LogEntry tries to create a LogEntry item using the default user. however that user doesn't exist because the data hasn't been backed up yet.

fix:

  • just add a try statement, or a case for if there are no users, just skip making LogEntries

also todo:

  • move the script to do backups to this repo

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