complete first version of main proccess
This commit is contained in:
		
							parent
							
								
									6ff4740d04
								
							
						
					
					
						commit
						f2fc2362a7
					
				
					 61 changed files with 3280 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -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']
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue