Skip to content

Commit 2db1463

Browse files
Jason Morrisonarthurio
authored andcommitted
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.
1 parent 0650c2a commit 2db1463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db_mutex/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ class DBMutex(models.Model):
1515
creation_time = models.DateTimeField(auto_now_add=True)
1616

1717
class Meta:
18-
app_label = 'db_mutex'
18+
app_label = "db_mutex"

0 commit comments

Comments
 (0)