Skip to content

Commit

Permalink
Added a app_label to the ApiKey
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Jacobs committed Jan 16, 2018
1 parent 2373d8b commit ce591d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
------------------
Features:
* Better support for the different ProductAttribute types in the serializer (including Entity when you implement a `.json()` method on your model)
* Added app_label to the `ApiKey` model so you don't need to have `oscarapi` in INSTALLED_APPS when using oscarapi's middleware classes.

Notes:
Dropped support for Oscar versions < 1.5(as we support new features which are available since oscar 1.5)
Expand Down
2 changes: 2 additions & 0 deletions oscarapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
class ApiKey(models.Model):
key = models.CharField(max_length=255, unique=True)

class Meta:
app_label = 'oscarapi'

0 comments on commit ce591d7

Please sign in to comment.