divio/django-cms — pull request #1163 by kezabelle (2012-02-05 21:35:05+00:00)
Title: Pointless minor improvements.

```cms.admin.pageadmin``` imports ```template``` from Django, but the only time it's used is once to create a ```RequestContext``` instance. As the import list already includes said context import, it's a worthless import. The same is basically true of the other edit touching pageadmin: Importing has_plugin_permission is unnecessary because permissions is already available.

The change to plugin model is similarly nitpicky, in that calling the magic method ```__unicode__``` is weird. The rest of the function tidy up also attempts to make things more explicit: ```get_plugin_instance``` may return None, so test for that explicitly.

Tests continue to pass

_(Note that 156235ac, 9c089a19 and e1352483 are the only commits which have changes, the rest should get fast-forward merged.)_