This triggered a maximum recursion depth issue.
This commit is contained in:
Rob Hudson 2013-05-31 13:46:02 -07:00
Родитель 0edb8636bf
Коммит 8ff003ac6c
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -114,7 +114,7 @@ class Version(amo.models.ModelBase):
platforms = cls._make_safe_platform_files(platforms)
for platform in platforms:
f = File.from_upload(upload, v, platform, parse_data=data)
File.from_upload(upload, v, platform, parse_data=data)
if addon.type == amo.ADDON_WEBAPP:
update_supported_locales_single.apply_async(
@ -447,8 +447,8 @@ class Version(amo.models.ModelBase):
def get_features(self):
"""
Returns this version's AppFeatures instance. If one doesn't exist, it is
created and returned.
Returns this version's AppFeatures instance. If one doesn't exist, it
is created and returned.
Used on Marketplace only.
"""
@ -457,7 +457,6 @@ class Version(amo.models.ModelBase):
return self.features
except AppFeatures.DoesNotExist:
self.features = AppFeatures.objects.create(version=self)
self.save()
return self.features