smartchicago/chicago-early-learning — pull request #357 by notthatbreezy (2013-09-03 19:03:41+00:00)
Title: Topic/admin approve edits

This pull request adds functionality to the admin that adds functionality so that Admins need to approve changes to locations made by non-superusers. Changes occur across a few files.

1. Add a LocationEdit table and an `accepted` field to the Location table
2. Override a number of methods in the ModelAdmin to take appropriate action based on user type when editing fields
3. Add a number of new messages and warnings based on user privileges and pending edits
4. Override __init__ method of LocationForm to highlight changed fields

After merging the following SQL commands need to be run once in order to update the table.
```
ALTER TABLE portal_location ADD COLUMN "accepted" BOOLEAN;
UPDATE portal_location set "accepted" = True;
ALTER TABLE portal_location ALTER COLUMN "accepted" SET NOT NULL;```