ephan
unread,Dec 12, 2012, 1:55:34 AM12/12/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hi all,
Am in a bit of a fix which I put myself in,I have the following models:
class Town(...):
name = models.CharField(unique=true)
province = models.foreignKey(Province)
class Area(....):
name = models.CharField(unique=true,max_length=120)
town = models.CharField(Town)
The problem here is I made the assumption that an area name is unique,unfortunatly after deploying ,I have just realized that some towns have the same area names so I can't have example area x in town A as well as area x in town B.
We have already deployed and have 575 users so far,is there any safe way of removing the unique key constraint on Area model without damaging the records which are already there?