Skip to content

Commit

Permalink
fix: few changes reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairshakoorarbisoft committed Jul 27, 2023
1 parent fa97e82 commit 4cb1493
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions edxval/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ def get_course_video(self, obj):
course_id=obj.course_video.course_id,
edx_video_id=obj.course_video.video.edx_video_id
)


model = VideoImage

verbose_name = 'Video Image'
verbose_name_plural = 'Video Images'

Expand All @@ -89,8 +86,6 @@ class CourseVideoAdmin(admin.ModelAdmin):
def get_video_id(self, obj):
""" get video id """
return obj.video.edx_video_id


model = CourseVideo
verbose_name = 'Course Video'
verbose_name_plural = 'Course Videos'
Expand All @@ -110,8 +105,6 @@ class VideoTranscriptAdmin(admin.ModelAdmin):
def get_video(self, transcript):
""" get video """
return transcript.video.edx_video_id if getattr(transcript, 'video', False) else ''


model = VideoTranscript
verbose_name = 'Video Transcript'
verbose_name_plural = 'Video Transcripts'
Expand Down
1 change: 1 addition & 0 deletions edxval/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale.
USE_L10N = True

# If you set this to False, Django will not use timezone-aware datetimes.
USE_TZ = True
Expand Down
4 changes: 2 additions & 2 deletions edxval/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

if getattr(settings, 'PROVIDER_STATES_SETUP_VIEW_URL', None):
from edxval.pacts.views import provider_state
urlpatterns.append(path(
'pact/provider_states/',
urlpatterns.append(re_path(
r'^pact/provider_states/$',
provider_state,
name='provider-state-view'
))

0 comments on commit 4cb1493

Please sign in to comment.