﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23874	Admin Interface: Unique constraint in gis.db.models raises Integrity Error instead of the unique error message	George Tantiras	nobody	"models.py
{{{
from django.contrib.gis.db import models as geomodels

class GeoUnique(geomodels.Model):
    geo_point = geomodels.PointField(
        unique=True,
        srid=4326
        )
    geoobjects = geomodels.GeoManager()
}}}


In the admin interface, if the same PointField is entered twice, an IntegrityError rises with a 40x Bad Request, while in any other of the django.db.models if the unique constraint is ""on"" and ""activated"" a friendly message notifies the user that the model instance cannot be saved."	Uncategorized	closed	GIS	1.7	Normal	worksforme	IntegrityError, Unique Constraint, Admin	George Tantiras	Unreviewed	0	0	0	0	0	0
