complete first version of main proccess

This commit is contained in:
aminhashemi92 2025-08-27 07:11:26 +03:30
parent 6ff4740d04
commit f2fc2362a7
61 changed files with 3280 additions and 28 deletions

View file

@ -1,6 +1,6 @@
from django.contrib import admin
from accounts.models import Role, Profile
from accounts.models import Role, Profile, Company
# Register your models here.
@ -30,3 +30,12 @@ class ProfileAdmin(admin.ModelAdmin):
date_hierarchy = 'created'
ordering = ['-created']
readonly_fields = ['created', 'updated']
@admin.register(Company)
class CompanyAdmin(admin.ModelAdmin):
list_display = ['name', 'logo', 'signature', 'address', 'phone']
prepopulated_fields = {'slug': ('name',)}
search_fields = ['name', 'address', 'phone']
list_filter = ['is_active']
date_hierarchy = 'created'
ordering = ['-created']