Skip to content

Commit

Permalink
[#92] Fix code quality issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmet DAL committed Sep 3, 2019
1 parent bd5db2f commit 946db69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion river/admin/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def model_class(self, obj):
else:
return "Class not found in the workspace"

def field_name(self, obj):
def field_name(self, obj): # pylint: disable=no-self-use
return obj.workflow.field_name


Expand Down
6 changes: 1 addition & 5 deletions river/models/transitionapproval.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import logging

from django.db.models import CASCADE
from mptt.fields import TreeOneToOneField

from river.models import State, TransitionApprovalMeta, Workflow
from river.utils.error_code import ErrorCode
from river.utils.exceptions import RiverException

try:
from django.contrib.contenttypes.fields import GenericForeignKey
except ImportError:
from django.contrib.contenttypes.generic import GenericForeignKey

from django.db import models, transaction
from django.db import models
from django.utils.translation import ugettext_lazy as _

from river.models.base_model import BaseModel
Expand Down

0 comments on commit 946db69

Please sign in to comment.