Fix errors occurred with Django 1.8
Fix errors occurred with Django 1.8

lino-framework/book,khchine5/book,lsaffre/lino_book,lino-framework/book,lino-framework/book,khchine5/book,khchine5/book,lino-framework/book,lsaffre/lino_book,lsaffre/lino_book