Skip to content

Commit

Permalink
Set managed = False on models to fully fix migration issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kluchrj committed Jan 28, 2019
1 parent 322079b commit 05b31d8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

v0.4.3 (Released 1/28/2019)
---------------------------

- Prevent the app from creating migrations


v0.4.2 (Released 1/23/2019)
---------------------------

Expand Down
2 changes: 1 addition & 1 deletion permissions_auditor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"Permissions auditing for Django."

__version__ = '0.4.2'
__version__ = '0.4.3'


default_app_config = 'permissions_auditor.apps.PermissionsAuditorConfig'
2 changes: 2 additions & 0 deletions permissions_auditor/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
class View(models.Model):
"""Dummy model to display views index pages in the admin."""
class Meta:
managed = False
verbose_name = 'permission'
verbose_name_plural = _('Site Views')
app_label = 'permissions_auditor'
Expand All @@ -26,6 +27,7 @@ class Group(DjangoGroupModel):
"""Proxy model to display groups page in the admin."""
class Meta:
proxy = True
managed = False
app_label = 'permissions_auditor'


Expand Down
2 changes: 0 additions & 2 deletions permissions_auditor/migrations/__init__.py

This file was deleted.

0 comments on commit 05b31d8

Please sign in to comment.