From 7a5fdf50f4a986336c577ce57ed73da1c445b6cd Mon Sep 17 00:00:00 2001 From: Justin Standring Date: Thu, 28 Jan 2016 17:35:57 +1300 Subject: [PATCH] Declare app_label in model Meta class to work with Django 1.9 Fixes RemovedInDjango19Warning: Model class db_mutex.models.DBMutex doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9. Credit: https://github.com/minervaproject/django-db-mutex/commit/429d701cce7ad2cf8fb77f169c4af6f2f27562fd --- db_mutex/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db_mutex/models.py b/db_mutex/models.py index df8c398..100fd89 100644 --- a/db_mutex/models.py +++ b/db_mutex/models.py @@ -13,3 +13,6 @@ class DBMutex(models.Model): """ lock_id = models.CharField(max_length=256, unique=True) creation_time = models.DateTimeField(auto_now_add=True) + + class Meta: + app_label = 'db_mutex'