def has_change_permission(self, request, obj=None):
        if not obj or obj.author == request.user or \
            request.user.has_perm('tumblelog.edit_others_posts'):
            return True
        return False

# Dynamically generate admin class from values passed to TumblelogMeta
If the user is the author of the post or has the proper permissions,
dataset/ETHPy150Open chuckharmston/django-tumblelog/tumblelog/admin.py/PostTypeAdmin.has_change_permission