2022-01-01 22:13:27 +00:00
|
|
|
from django.contrib import admin
|
2022-01-04 13:47:37 +00:00
|
|
|
from django.contrib.auth.models import Group
|
|
|
|
from .models import Order, Profile
|
2022-01-01 22:13:27 +00:00
|
|
|
|
2022-01-04 13:47:37 +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)
|