Commits

Anonymous committed c0f943f

database

Comments (0)

Files changed (1)

src/RoomReservation/rooms/models.py

 class Room(models.Model):
     u'''model for available room.'''
     
-    label      = models.CharField(u'名前', max_length=255)
-    place      = models.CharField(u'場所', max_length=255)
-    capacity   = models.IntegerField(u'定員', blank=True)
+    label      = models.CharField(u'名前', max_length=30)
+    place      = models.CharField(u'場所', max_length=140)
+    capacity   = models.PositiveSmallIntegerField(u'定員', blank=True, null=True)
     
     created_at = models.DateTimeField(u'作成日時', auto_now_add=True)
     updated_at = models.DateTimeField(u'更新日時', auto_now=True)