Skip to content

Commit

Permalink
Merge pull request #103 from knaperek/master
Browse files Browse the repository at this point in the history
Tiny cleanups
  • Loading branch information
ticosax authored Jan 24, 2022
2 parents dbc7cee + a2e548e commit 3a191c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django_fsm_log/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ def get_readonly_fields(self, request, obj=None):
return self.fields

def get_queryset(self, request):
return super(StateLogInline, self).get_queryset(
return super().get_queryset(
request
).order_by(F('timestamp').desc())
2 changes: 1 addition & 1 deletion django_fsm_log/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _pre_transition_callback(sender, instance, name, source, target, manager, **
manager.create(**values)


class BaseBackend(object):
class BaseBackend:

@staticmethod
def setup_model(model):
Expand Down
2 changes: 1 addition & 1 deletion django_fsm_log/helpers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NOTSET = object()


class FSMLogDescriptor(object):
class FSMLogDescriptor:

ATTR_PREFIX = '__django_fsm_log_attr_'

Expand Down

0 comments on commit 3a191c4

Please sign in to comment.