Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new organization gives duplicate key value database error #12

Open
MikkoJo opened this issue Sep 28, 2012 · 2 comments
Open

Adding new organization gives duplicate key value database error #12

MikkoJo opened this issue Sep 28, 2012 · 2 comments

Comments

@MikkoJo
Copy link
Contributor

MikkoJo commented Sep 28, 2012

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...

@MikkoJo
Copy link
Contributor Author

MikkoJo commented Sep 28, 2012

This is more like a documentation flaw. There can be only one organization per site.

@MikkoJo MikkoJo closed this as completed Sep 28, 2012
@ksnabb
Copy link
Member

ksnabb commented Sep 28, 2012

I think this was closed on mistake

@ksnabb ksnabb reopened this Sep 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants