diff options
-rw-r--r-- | app/models/public_body.rb | 5 | ||||
-rw-r--r-- | public/stylesheets/admin.css | 2 | ||||
-rw-r--r-- | todo.txt | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index e16463b62..b03a173a2 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -21,7 +21,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: public_body.rb,v 1.58 2008-04-15 16:11:53 francis Exp $ +# $Id: public_body.rb,v 1.59 2008-04-16 09:46:46 francis Exp $ require 'csv' require 'set' @@ -29,6 +29,9 @@ require 'set' class PublicBody < ActiveRecord::Base validates_presence_of :name validates_presence_of :url_name + + validates_uniqueness_of :short_name + validates_uniqueness_of :name has_many :info_requests has_many :public_body_tags diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 1e9202e18..3123818c7 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css @@ -32,7 +32,7 @@ form { border: solid 1px green; padding: 1em; } -#error { +#error, #errorExplanation { color: red; border: solid 1px red; padding: 1em; @@ -3,6 +3,8 @@ Isn't showing admin things that haven't been touched for 2 weeks or whatever Check fixed: Michael Turner's name has a space in it - strip them automatically (can see on the write message to page) +jslib path loading broken in Mongrel :( + FOI requests to use to test it ============================== |