Skip to content

IntegrityError: duplicate key value violates unique constraint "epsonprinter_printer_name_key" #96

@sentry

Description

@sentry

Sentry Issue: LABOUTIK_DJANGO-14

Printer.DoesNotExist: Printer matching query does not exist.
  File "django/db/models/query.py", line 538, in get_or_create
    return self.get(**kwargs), False
  File "django/db/models/query.py", line 406, in get
    raise self.model.DoesNotExist(

UniqueViolation: duplicate key value violates unique constraint "epsonprinter_printer_name_key"
DETAIL:  Key (name)=(Boutique inner printer) already exists.

  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)

IntegrityError: duplicate key value violates unique constraint "epsonprinter_printer_name_key"
DETAIL:  Key (name)=(Boutique inner printer) already exists.

(17 additional frame(s) were not displayed)
...
  File "webview/views.py", line 133, in new_hardware
    Printer.objects.get_or_create(

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status
Todo Rapide

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions