Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Commit

Permalink
add VideoUrlStatus to the admin so that we can look through missing l…
Browse files Browse the repository at this point in the history
…inks
  • Loading branch information
codersquid committed Aug 18, 2014
1 parent 8b6c7ba commit fbbb680
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion richard/videos/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from django.contrib.admin import SimpleListFilter
from django.utils.translation import ugettext_lazy as _

from richard.videos.models import (Video, Category, Speaker, Tag,
from richard.videos.models import (Video, VideoUrlStatus, Category, Speaker, Tag,
Language, RelatedUrl)


Expand Down Expand Up @@ -70,6 +70,15 @@ class VideoAdmin(admin.ModelAdmin):
admin.site.register(Video, VideoAdmin)


class VideoUrlStatusAdmin(admin.ModelAdmin):
date_heirarchy = 'check_date'
list_display = ('status_code', 'status_message', 'url')
list_filter = ('status_code', 'check_date')


admin.site.register(VideoUrlStatus, VideoUrlStatusAdmin)


class CategoryAdmin(admin.ModelAdmin):
list_display = ('title', 'linked_url', 'whiteboard')
list_filter = (WhiteboardFilter,)
Expand Down

0 comments on commit fbbb680

Please sign in to comment.