This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/attachments/admin.py

10 lines
294 B
Python

from django.contrib import admin
from django.contrib.admin import register
from attachments.models import Attachment
@register(Attachment)
class AttachmentAdmin(admin.ModelAdmin):
list_display = ["description", "original_file", "processed_file"]
list_display_links = ["description"]