Added some unique constraints for models with codename fields
Merge branch 'master' into beaudev
Fixed view pages