add attachments app
[redakcja.git] / apps / attachments / admin.py
diff --git a/apps/attachments/admin.py b/apps/attachments/admin.py
new file mode 100644 (file)
index 0000000..26db450
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+from django.contrib import admin
+
+from attachments.models import Attachment
+
+
+class AttachmentAdmin(admin.ModelAdmin):
+    list_display = ('key',)
+    search_fields = ('key',)
+
+admin.site.register(Attachment, AttachmentAdmin)