catalog.api package#

Concepts#

Subpackages#

Submodules#

catalog.api.admin module#

class catalog.api.admin.AudioAdmin(model, admin_site)#

Bases: ModelAdmin

property media#
search_fields = ('identifier',)#
class catalog.api.admin.AudioReportAdmin(model, admin_site)#

Bases: MediaReportAdmin

property media#
media_specific_list_display = ('audio_url',)#
class catalog.api.admin.ImageAdmin(model, admin_site)#

Bases: ModelAdmin

property media#
search_fields = ('identifier',)#
class catalog.api.admin.ImageReportAdmin(model, admin_site)#

Bases: MediaReportAdmin

property media#
media_specific_list_display = ('image_url',)#
class catalog.api.admin.MediaReportAdmin(model, admin_site)#

Bases: ModelAdmin

actions = None#
autocomplete_fields = ('media_obj',)#
get_exclude(request, obj=None)#

Hook for specifying exclude.

get_list_display(request)#

Return a sequence containing the fields to be displayed on the changelist.

get_readonly_fields(request, obj=None)#

Hook for specifying custom readonly fields.

list_display = ('reason', 'status', 'description', 'created_at')#
list_filter = ('status', 'reason')#
property media#
media_specific_list_display = ()#
search_fields = ('description', 'media_obj__identifier')#
class catalog.api.admin.MediaSubreportAdmin(model, admin_site)#

Bases: ModelAdmin

exclude = ('media_obj',)#
has_add_permission(*args, **kwargs)#

Create _Report instances instead.

property media#
readonly_fields = ('media_obj_id',)#
search_fields = ('media_obj__identifier',)#
class catalog.api.admin.ProviderAdmin(model, admin_site)#

Bases: ModelAdmin

exclude = ('notes',)#
list_display = ('provider_name', 'provider_identifier', 'media_type')#
property media#
search_fields = ('provider_name', 'provider_identifier')#

catalog.api.apps module#

class catalog.api.apps.ApiConfig(app_name, app_module)#

Bases: AppConfig

default_auto_field = 'django.db.models.AutoField'#
name = 'catalog.api'#

catalog.api.licenses module#

Module contents#