Skip to content

Adding new organization gives duplicate key value database error #12

@MikkoJo

Description

@MikkoJo

Start of the error message:
IntegrityError at /admin/base_page/organizationsetting/add/

duplicate key value violates unique constraint "base_page_citysetting_site_id_key"
DETAIL:  Key (site_id)=(1) already exists.

Request Method:     POST
Request URL:    http://localhost:8000/admin/base_page/organizationsetting/add/
Django Version:     1.4.1
Exception Type:     IntegrityError
Exception Value:    

duplicate key value violates unique constraint "base_page_citysetting_site_id_key"
DETAIL:  Key (site_id)=(1) already exists.

Likely cause:
Change from citysettings to organizationsettings left all indices, sequences and constraints in database to use names and references like base_page_citysettings...

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