You can use user_passes_test decorator to implement such check. You can find more information about it by this link https://docs.djangoproject.com/en/dev/topics/auth/