Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 99c04b99 authored by guimoz's avatar guimoz Committed by root

Classement des chambres par orde alphabétique

parent 84617e24
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-09-05 12:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('topologie', '0026_auto_20170902_1245'),
operations = [
options={'ordering': ['name']},
field=models.CharField(choices=[('NO', 'NO'), ('STRICT', 'STRICT'), ('BLOQ', 'BLOQ'), ('COMMON', 'COMMON')], default='NO', max_length=32),
......@@ -135,6 +135,9 @@ class Room(models.Model):
name = models.CharField(max_length=255, unique=True)
details = models.CharField(max_length=255, blank=True)
class Meta:
ordering = ['name']
def __str__(self):
return str(self.name)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment