Skip to content

Commit

Permalink
fix: linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ormsbee committed Jan 7, 2024
1 parent ef1a8ab commit e27f815
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions openedx_learning/core/collections/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@

from openedx_learning.lib.admin_utils import ReadOnlyModelAdmin

from ..publishing.models import PublishableEntity
from .models import (
AddEntity,
Collection,
ChangeSet,
CollectionPublishableEntity,
UpdateEntities,
RemoveEntity
)
Expand Down
7 changes: 4 additions & 3 deletions openedx_learning/core/collections/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@

from datetime import datetime, timezone

from django.db.models import F, QuerySet
from django.db.models import QuerySet
from django.db.transaction import atomic

from ..publishing.models import PublishableEntity
from .models import (
Collection, CollectionPublishableEntity, ChangeSet,
AddEntity, RemoveEntity, UpdateEntities,
AddEntity, UpdateEntities,
)
from ..publishing.signals import PUBLISHED_PRE_COMMIT


def create_collection(
Expand Down Expand Up @@ -163,3 +162,5 @@ def remove_from_collection(
version_num=next_version_num,
created=created,
)

return change_set
2 changes: 0 additions & 2 deletions tests/openedx_learning/core/collections/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
Tests of the Collection app's python API
"""
from datetime import datetime, timezone
from uuid import UUID

from django.core.exceptions import ValidationError

from openedx_learning.core.collections import api as collections_api
from openedx_learning.core.publishing import api as publishing_api
Expand Down

0 comments on commit e27f815

Please sign in to comment.