Skip to content

Commit

Permalink
Declare app_label in model Meta class to work with Django 1.9
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jasonm authored and arthurio committed May 3, 2023
1 parent 0650c2a commit 2db1463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db_mutex/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ class DBMutex(models.Model):
creation_time = models.DateTimeField(auto_now_add=True)

class Meta:
app_label = 'db_mutex'
app_label = "db_mutex"

0 comments on commit 2db1463

Please sign in to comment.