X-Git-Url: http://git.auf.org/?p=auf_rh_dae.git;a=blobdiff_plain;f=project%2Frouteur.py;h=0fe826b7cbbcdcc254381bac047ef4aaad6c61c4;hp=a7938719699ceb8c787d9a598676d0be11bd784c;hb=86a269875d80a2e11a994fc1f2fc85ba7a859c15;hpb=39e40a5fc4255f9dac43af611e23eec1398913fb diff --git a/project/routeur.py b/project/routeur.py index a793871..0fe826b 100644 --- a/project/routeur.py +++ b/project/routeur.py @@ -7,10 +7,10 @@ class RORouter(object): return None def db_for_write(self, model, **hints): - if model._meta.app_label in ['auth', 'sessions', 'dashboard']: + if model._meta.app_label in ['auth', 'sessions', 'dashboard', 'contenttypes']: return None else: - assert False, "Vous ne pouvez écrire dans l'application: {}".format(model._meta.app_label) + assert False, "Vous ne pouvez écrire dans l'application: %s" % model._meta.app_label def allow_relation(self, obj1, obj2, **hints): return True