code: def has_csv_permission(self, request, obj=None):
          
          if getattr(settings, 'DJANGO_EXPORTS_REQUIRE_PERM', None):
              opts = self.opts
              codename = '%s_%s' % ('csv', opts.object_name.lower())
              return request.user.has_perm("%s.%s" % (opts.app_label, codename))
          return True
docs: Returns True if the given request has permission to add an object.
          Can be overridden by the user in subclasses. By default, we assume
          all staff users can use this action unless `DJANGO_EXPORTS_REQUIRE_PERM`
          is set to True in your django settings.