From d4da12dda9ecdd9b5786249cb10a08780ff9f552 Mon Sep 17 00:00:00 2001 From: Laouen Fernet Date: Sat, 30 May 2020 11:38:02 +0200 Subject: [PATCH] Fix some translations in topologie/ --- topologie/models.py | 4 +--- topologie/urls.py | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/topologie/models.py b/topologie/models.py index 0dbb0e6a..85f6d188 100644 --- a/topologie/models.py +++ b/topologie/models.py @@ -84,7 +84,7 @@ class Stack(AclMixin, RevMixin, models.Model): super(Stack, self).save(*args, **kwargs) def clean(self): - """ Verification que l'id_max < id_min""" + """Check if id_max < id_min.""" if self.member_id_max < self.member_id_min: raise ValidationError( {"member_id_max": _("The maximum ID is less than the minimum ID.")} @@ -310,8 +310,6 @@ class Switch(Machine): ) def create_ports(self, begin, end): - """ Crée les ports de begin à end si les valeurs données - sont cohérentes. """ """Create ports for the switch if the values are consistent. Args: diff --git a/topologie/urls.py b/topologie/urls.py index c204cb39..4baf8234 100644 --- a/topologie/urls.py +++ b/topologie/urls.py @@ -19,11 +19,8 @@ # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -""" -Definition des urls de l'application topologie. -Inclu dans urls de re2o. - -Fait référence aux fonctions du views +"""topologie.urls +The defined URLs for topologie app. Included in re2o.urls. """ from __future__ import unicode_literals