fix print and preview quote and add broker to req and complete company model.

This commit is contained in:
aminhashemi92 2025-09-07 18:43:14 +03:30
parent 5ce94214d5
commit 246a2c0759
19 changed files with 872 additions and 260 deletions

View file

@ -33,9 +33,9 @@ class ProfileAdmin(admin.ModelAdmin):
@admin.register(Company)
class CompanyAdmin(admin.ModelAdmin):
list_display = ['name', 'logo', 'signature', 'address', 'phone']
list_display = ['name', 'logo', 'signature', 'address', 'phone', 'broker']
prepopulated_fields = {'slug': ('name',)}
search_fields = ['name', 'address', 'phone']
list_filter = ['is_active']
list_filter = ['is_active', 'broker']
date_hierarchy = 'created'
ordering = ['-created']