code: def add(self, urls):
          
  
          if isinstance(urls, (list, tuple)):
              self.urls.extend(urls)
          elif isinstance(urls, basestring):
              self.urls.append(urls)
          elif isinstance(urls, QuerySet):
              for obj in urls:
                  self.urls.append(obj.get_absolute_url())
          elif hasattr(urls, 'get_absolute_url'):
              self.urls.append(urls.get_absolute_url())
          else:
              raise TypeError("Don't know how to handle %r" % urls)
docs: Add the provided urls to this purge request
  
          The urls argument can be a single string, a list of strings, a queryset
          or model instance. Models must implement `get_absolute_url()`.