This commit is contained in:
j 2012-01-17 16:46:06 +05:30
parent 0700bf7b95
commit 2f92d5d2aa

View file

@ -919,7 +919,7 @@ class Item(models.Model):
shutil.rmtree(base) shutil.rmtree(base)
ox.makedirs(base) ox.makedirs(base)
filename = utils.sefe_filename(self.get('title')) filename = utils.safe_filename(self.get('title'))
base = self.path('torrent/%s' % filename) base = self.path('torrent/%s' % filename)
base = os.path.abspath(os.path.join(settings.MEDIA_ROOT, base)) base = os.path.abspath(os.path.join(settings.MEDIA_ROOT, base))
size = 0 size = 0