Django-Postgres Integrity Error: Duplicate key — how to fix?
问题 Im getting an Integrity Error when adding a new instance of a model, here's the traceback: Traceback: File "/home/robain/webapps/django/lib/python2.6/django/core/handlers/base.py" in get_response 100. response = callback(request, *callback_args, **callback_kwargs) File "/home/robain/webapps/django/lib/python2.6/django/contrib/admin/views/decorators.py" in _checklogin 33. return view_func(request, *args, **kwargs) File "/home/robain/webapps/django/tmanage/tempManage/src/CTmanage.py" in addCT