Commits

Mikhail Korobov committed 5f8eed6

Improved admin

Comments (0)

Files changed (2)

     accepted.boolean = True
     accepted.admin_order_field = 'TransactionAccepted'
 
-    list_display = ['Reference', 'created_at', 'updated_at', 'Amount',
+    list_display = ['Reference', 'user', 'created_at', 'Amount',
                     'Reason', 'RETC', 'request_ip', 'accepted',
                     'trusted', 'Extra1', 'Extra2', 'Extra3', 'short_debug_info']
     list_filter = ['TransactionAccepted', 'trusted']
-    search_fields = ['Reference', 'Extra1', 'Extra2', 'Extra3']
+    search_fields = ['Reference', 'Extra1', 'Extra2', 'Extra3',
+                     'user__username', 'user__email', 'user__first_name', 'user__last_name']
+    raw_id_fields = ['user']
     date_hierarchy = 'created_at'
 
 admin.site.register(NetcashGateway, NetcashGatewayAdmin)
 
 setup(
     name='django-netcash',
-    version='0.3.0',
+    version='0.3.1',
     author='Mikhail Korobov',
     author_email='kmike84@gmail.com',