From 47564afcc25b48d42c76613899b96b9826b3cfc4 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 14 Aug 2015 15:21:30 +0300 Subject: Remove GSX password fields --- servo/models/common.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'servo/models/common.py') diff --git a/servo/models/common.py b/servo/models/common.py index 58b7427..3c06d84 100644 --- a/servo/models/common.py +++ b/servo/models/common.py @@ -220,13 +220,6 @@ class GsxAccount(models.Model): verbose_name=_("User ID") ) - password = models.CharField( - blank=True, - default='', - max_length=256, - verbose_name=_("Password") - ) - environment = models.CharField( max_length=2, verbose_name=_("Environment"), @@ -289,8 +282,6 @@ class GsxAccount(models.Model): """ if user.gsx_userid: self.user_id = user.gsx_userid - if user.gsx_password: - self.password = user.gsx_password if location is None: timezone = user.location.gsx_tz @@ -298,7 +289,6 @@ class GsxAccount(models.Model): timezone = location.gsx_tz gsxws.connect(user_id=self.user_id, - password=self.password, sold_to=self.sold_to, environment=self.environment, timezone=timezone) @@ -308,11 +298,9 @@ class GsxAccount(models.Model): """ Tests that the account details are correct """ - if self.user_id and self.password: - gsxws.connect(sold_to=self.sold_to, - user_id=self.user_id, - password=self.password, - environment=self.environment) + gsxws.connect(sold_to=self.sold_to, + user_id=self.user_id, + environment=self.environment) def get_admin_url(self): return reverse('admin-edit_gsx_account', args=[self.pk]) -- cgit v1.2.3