Skip to content

Commit

Permalink
fix: imports sort issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Dec 23, 2024
1 parent 1275cdf commit 25bd300
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
15 changes: 9 additions & 6 deletions course_discovery/apps/tagging/admin.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import csv
from django.contrib import admin
from django.contrib import messages
from django.urls import reverse
from io import TextIOWrapper

from django.contrib import admin, messages
from django.shortcuts import redirect, render
from django.template.response import TemplateResponse
from io import TextIOWrapper
from course_discovery.apps.tagging.forms import CSVUploadForm
from django.urls import reverse

from course_discovery.apps.course_metadata.models import Course
from course_discovery.apps.tagging.models import VerticalFilter, SubVericalFilter, CourseVerticalFilters, ProgramVerticalFilters
from course_discovery.apps.tagging.forms import CSVUploadForm
from course_discovery.apps.tagging.models import (
CourseVerticalFilters, ProgramVerticalFilters, SubVericalFilter, VerticalFilter
)


@admin.register(VerticalFilter)
Expand Down
1 change: 1 addition & 0 deletions course_discovery/apps/tagging/forms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django import forms


class CSVUploadForm(forms.Form):
csv_file = forms.FileField(label="Upload CSV File")
3 changes: 2 additions & 1 deletion course_discovery/apps/tagging/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.db import models
from model_utils.models import TimeStampedModel
from django_extensions.db.fields import AutoSlugField
from model_utils.models import TimeStampedModel

from course_discovery.apps.course_metadata.models import Course, Program


Expand Down

0 comments on commit 25bd300

Please sign in to comment.