fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.4.4: Django 3.0 support, actions.export_as_csv_action added.
[fnpdjango.git]
/
tests
/
admin.py
diff --git a/tests/admin.py
b/tests/admin.py
new file mode 100644
(file)
index 0000000..
24f2d07
--- /dev/null
+++ b/
tests/admin.py
@@ -0,0
+1,13
@@
+from django.contrib import admin
+from . import models
+from fnpdjango import actions
+
+
+class SomeModelAdmin(admin.ModelAdmin):
+ actions = [
+ actions.export_as_csv_action("CSV")
+ ]
+
+
+admin.site.register(models.SomeModel, SomeModelAdmin)
+