Update public/media/README for recent changes
Make program modules field on new program form wider
Show gender on userview page (if specified)
Remove some unused imports of Django render_to_response
Fix typo in deadlines template

Due to ExpirableModel, the Permission fields startdate and enddate have
been changed to start_date and end_date respectively.  The template had to
be updated to reflect this so that the form fields would render properly.
Fix a server error when saving deadlines

After the schema simplification migrations, there were some duplicated
deadlines.  If you tried to change a deadline using the deadline
management page, and there were duplicate deadlines being shown, you would
get an error because the duplicate deadlines were deleted and then the
view code tried to process a form for one of the (now-deleted) deadlines.
Only show global permissions on deadlines page.

The deadlines page was often very long and confusing because it listed the
per-user Permissions as well as per-role Permissions.  The former are
usually exceptions granted to individual users and shouldn't be shown in
this view (they are normally created in the admin interface and then
forgotten).
Fix form rendering in list generator module
Fix form rendering in old style user search form
Fix teacher list overflow in catalog
Add a qsdmedia migration to properly associate Medias

We had a migration, 0004_set_owner, which attempted to set the owner field
of the Media to match the program or class that it was uploaded for (in
lieu of the Datatree anchor).  That failed.  This is an attempt to do it
properly.
Use frozen ORM for ContentType in qsdmedia migration
Fixes display of qsdmedia owner_type
Merge pull request #980 from learning-unlimited/sr4-minor-fixes

Minor fixes for stable release 4