Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django_fsm_log/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf import settings # noqa:F811
from django.conf import settings # noqa: F811,F401
from appconf import AppConf


Expand Down
2 changes: 2 additions & 0 deletions django_fsm_log/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def for_(self, obj):


class StateLogManager(models.Manager):
use_in_migrations = True

def get_queryset(self):
return StateLogQuerySet(self.model)

Expand Down
20 changes: 20 additions & 0 deletions django_fsm_log/migrations/0004_auto_20190131_0341.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 2.1.5 on 2019-01-31 03:41

from django.db import migrations
import django_fsm_log.managers


class Migration(migrations.Migration):

dependencies = [
('django_fsm_log', '0003_statelog_description_squashed_0005_description_null'),
]

operations = [
migrations.AlterModelManagers(
name='statelog',
managers=[
('objects', django_fsm_log.managers.StateLogManager()),
],
),
]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def readfile(filename):
author_email='[email protected]',
url='https://github.com/gizmag/django-fsm-log',
license='MIT',
packages=find_packages(),
packages=find_packages(exclude=['tests']),
install_requires=['django>=1.8', 'django_fsm>=2', 'django_appconf'],
extras_require={
'testing': [
Expand Down