video player and model and video guide routing and stuff

This commit is contained in:
Parsa Nazer
2025-02-16 21:42:29 +03:30
parent d8f7be7772
commit 81df30c806
28 changed files with 531 additions and 25 deletions
+2 -1
View File
@@ -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 = (