Commits

Alexander Solovyov committed 24ae5c4

exclude double slashes

Comments (0)

Files changed (1)

cyraxlib/models.py

 
     def get_url(self):
         url = op.join(self.base, self.slug)
-        if self.isdir() and url:
+        if self.isdir() and url and not url.endswith('/'):
             url += '/'
         return url