Remove old models from admin
This commit is contained in:
parent
c6dd0ff286
commit
0937f7299a
|
@ -2,15 +2,13 @@ from django.contrib import admin
|
|||
from django.contrib.auth.admin import UserAdmin
|
||||
|
||||
from .forms import CustomUserCreationForm
|
||||
from .models import ( # AssetRestriction,
|
||||
from .models import ( # AssetRestriction,; Plan,; Session,
|
||||
Account,
|
||||
AssetGroup,
|
||||
Callback,
|
||||
Hook,
|
||||
NotificationSettings,
|
||||
Plan,
|
||||
RiskModel,
|
||||
Session,
|
||||
Signal,
|
||||
Strategy,
|
||||
Trade,
|
||||
|
@ -27,7 +25,7 @@ from .models import ( # AssetRestriction,
|
|||
|
||||
# Register your models here.
|
||||
class CustomUserAdmin(UserAdmin):
|
||||
list_filter = ["plans"]
|
||||
# list_filter = ["plans"]
|
||||
model = User
|
||||
add_form = CustomUserCreationForm
|
||||
fieldsets = (
|
||||
|
@ -40,7 +38,7 @@ class CustomUserAdmin(UserAdmin):
|
|||
"Payment information",
|
||||
{
|
||||
"fields": (
|
||||
"plans",
|
||||
# "plans",
|
||||
"last_payment",
|
||||
)
|
||||
},
|
||||
|
@ -101,8 +99,8 @@ class AssetGroupAdmin(admin.ModelAdmin):
|
|||
|
||||
|
||||
admin.site.register(User, CustomUserAdmin)
|
||||
admin.site.register(Plan)
|
||||
admin.site.register(Session)
|
||||
# admin.site.register(Plan)
|
||||
# admin.site.register(Session)
|
||||
|
||||
admin.site.register(Account, AccountAdmin)
|
||||
admin.site.register(Hook, HookAdmin)
|
||||
|
|
Loading…
Reference in New Issue