python - postgresql drop unique constraint after changing the class definition in django -


i had created table model class in django:

class a(models.model):     code = models.charfield(unique=true,max_length=2)     name = models.charfield(max_length=20) 

later after adding data, changed model definition remove unique constraint as

class a(models.model):     code = models.charfield(max_length=2)     name = models.charfield(max_length=20) 

in postgresql using psql dropped constraint as:

alter table drop constraint "unique_a_code_key";

now after 2 days, still not able add existing code value thru' django admin form. how can remove constraint not see #d+ a; in postgres

have reloaded django app, working fine. problem app started in screen few days back. after stopping application in screen , restarting, shows running in port. killed process , restarted application. well! working fine!


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -