Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
code review cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnMilo committed Aug 19, 2015
1 parent a30b2fd commit 83a8276
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions rest/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ def get_queryset(self):
repo_ids = [repo.id for repo in get_repos(self.request.user.id)]
return Repository.objects.filter(id__in=repo_ids).order_by('id')

def perform_create(self, serializer):
"""Create a new repository."""
serializer.save()


class RepositoryDetail(RetrieveAPIView):
"""REST detail view for Repository."""
Expand Down
2 changes: 1 addition & 1 deletion roles/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def add_creator_permission(sender, **kwargs):
instance = kwargs.pop("instance", None)
if not kwargs["created"]:
return
if instance.__class__.__name__ != "Repository":
if not isinstance(instance, Repository):
return
roles_init_new_repo(instance)
assign_user_to_repo_group(
Expand Down

0 comments on commit 83a8276

Please sign in to comment.