from django.contrib import admin
import stocks

# Stock admin functions
def update(modeladmin, request, queryset):
    for i in queryset:
        i.update()
def force_update(modeladmin, request, queryset):
    for i in queryset:
        i.force_update()

def accept(modeladmin, request, queryset):
    for i in queryset:
        i.accept()
@admin.register(stocks.models.Stock)
class StockAdmin(admin.ModelAdmin):
    actions = [update, force_update]

@admin.register(stocks.models.Player)
class PlayerAdmin(admin.ModelAdmin):
    list_display = ("__str__", "points", "pk")
    fields = ("user", "floor", "points", "stocks")

@admin.register(stocks.models.Floor)
class FloorAdmin(admin.ModelAdmin):
    fields = ("name", "owner", "floorPlayer", "stocks", "permissiveness")

@admin.register(stocks.models.Trade)
class TradeAdmin(admin.ModelAdmin):
    fields = ("recipient", "recipientStocks", "floor", "sender", "senderStocks")
    actions = [accept]

@@ -442,16 +442,63 @@
 _update%5D
+%0A    list_display = (%22__str__%22, %22last_updated%22)
 %0A%0A@admin

Improve admin listing of stocks