video player and model and video guide routing and stuff
This commit is contained in:
@@ -9,7 +9,7 @@ from django.contrib.postgres.fields import ArrayField
|
||||
from django.contrib.auth.models import Group
|
||||
from unfold.forms import AdminPasswordChangeForm
|
||||
from unfold.forms import AdminPasswordChangeForm, UserChangeForm, UserCreationForm
|
||||
|
||||
from utils.admin import ModelAdmin
|
||||
class UserAddressInLine(TabularInline):
|
||||
model = UserAddressModel
|
||||
extra = 0
|
||||
@@ -36,6 +36,7 @@ class UserAdmin(BaseUserAdmin, ModelAdmin, ImportExportModelAdmin):
|
||||
fieldsets = (
|
||||
('اطلاعات شخصی', {'fields': ('first_name', 'last_name', 'profile_photo', 'password', 'gender', 'birth_date'),}),
|
||||
('اطلاعات ارتباطی', {'fields': ('phone', 'email'),}),
|
||||
('دسترسی های وبسایت', {'fields': ('is_superuser', 'video_uploader'),}),
|
||||
)
|
||||
empty_value_display = 'ثبت نشده'
|
||||
add_fieldsets = (
|
||||
|
||||
Reference in New Issue
Block a user