robosats/api/admin.py

16 lines
537 B
Python
Raw Normal View History

2022-01-01 22:13:27 +00:00
from django.contrib import admin
from django.contrib.auth.models import Group
from .models import Order, Profile
2022-01-01 22:13:27 +00:00
@admin.register(Order)
class OrderAdmin(admin.ModelAdmin):
list_display = ('id','type','maker','taker','status','amount','currency','created_at','expires_at')
list_display_links = ('maker','taker')
pass
@admin.register(Profile)
class UserProfileAdmin(admin.ModelAdmin):
list_display = ('user','id','total_ratings','avg_rating','num_disputes','lost_disputes','avatar')
pass
admin.site.unregister(Group)