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

11 lines
294 B
Python
Raw Normal View History

2020-08-26 19:04:48 +02:00
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"]