Skip to content

ForeignKey on_delete missing #2

@jayvdb

Description

@jayvdb
  File "/usr/lib/python3.8/site-packages/command_scheduler/models.py", line 66, in Log
    command = models.ForeignKey(Command, related_name='logs')
TypeError: __init__() missing 1 required positional argument: 'on_delete'

Usually an easy fix. I guess the appropriate thing to do is not delete logs when a command is deleted.

Deleting logs with the command might be useful, but should be opt-in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions