'Return True if the user has the permission to add a model.'

def has_add_permission(self, request):

    if (not request.user.is_authenticated()):
        return False
    opts = self.get_queryset().model._meta
    codename = get_permission_codename('add', opts)
    return request.user.has_perm(('%s.%s' % (opts.app_label, codename)))
