correction d'une redirection en cas d'erreur

This commit is contained in:
Romain Beuque 2014-07-15 16:14:18 +02:00
parent 3a9ad3fbcf
commit a0d15b2b95

View File

@ -127,7 +127,7 @@ class RoomsController(AuthenticatedBaseController):
@expose("brie.templates.rooms.index")
def preview(self, residence, number):
if not number.isdigit(): redirect("/rooms/" + residence)
if not number.isdigit(): redirect("/rooms/index/" + residence)
index_result = self.index(residence)