Browse Source

Fix some translations in topologie/

extension_del_error_message
Laouen Fernet 6 years ago
committed by chirac
parent
commit
9a3b395e6c
  1. 4
      topologie/models.py
  2. 7
      topologie/urls.py

4
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:

7
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

Loading…
Cancel
Save