Skip to content

Commit

Permalink
Fix loading fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmet DAL committed Jan 4, 2019
1 parent a238f3a commit 0dac19d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ dist
.DS_Store
.cache
.pytest_cache
.python-version
.python-version
build
4 changes: 2 additions & 2 deletions river/models/managers/transitionmetada.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


class TransitionApprovalMetadataManager(models.Manager):
def get_by_natural_key(self, content_type, transition, priority):
return self.get(content_type=content_type, transition=transition, priority=priority)
def get_by_natural_key(self, field_name, content_type, source_state, destination_state, priority):
return self.get(field_name=field_name, content_type=content_type, source_state=source_state, destination_state=destination_state, priority=priority)

0 comments on commit 0dac19d

Please sign in to comment.