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))
Return True if the user has the permission to add a model.
dataset/ETHPy150Open yourlabs/django-autocomplete-light/src/dal/views.py/BaseQuerySetView.has_add_permission