Make same as admin action compatible with Django 1.4