Fixed webapp.get_name()

This commit is contained in:
Marc Aymerich 2014-11-09 10:17:59 +00:00
parent 9ed4be4d2e
commit 67ad2cf6b5

View file

@ -34,7 +34,7 @@ class WebApp(models.Model):
return { opt.name: opt.value for opt in self.options.all() } return { opt.name: opt.value for opt in self.options.all() }
def get_name(self): def get_name(self):
return return self.name or settings.WEBAPPS_BLANK_NAME return self.name or settings.WEBAPPS_BLANK_NAME
def get_fpm_port(self): def get_fpm_port(self):
return settings.WEBAPPS_FPM_START_PORT + self.account.pk return settings.WEBAPPS_FPM_START_PORT + self.account.pk