Skip to content

Registering single shift-watch when rule exists already throws internal error #747

@crosspolar

Description

@crosspolar

error seems here:

File "/app/tapir/shifts/views/views.py", line 396, in form_valid

    return super().form_valid(form)

throws e.g.


django.db.utils.IntegrityError: duplicate key value violates unique constraint "shift_watch_constraint"
DETAIL:  Key (user_id, shift_id)=(634, 12023) already exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions