| 
                
               | 
              
                
               | 
              
                @@ -10,6 +10,7 @@ from mch.models import BrandInfo, DistributorInfo, LatestAppInfo, ModelImageInfo 
               | 
            
            
            
              | 
                10
               | 
              
                10
               | 
              
                  
               | 
            
            
            
              | 
                11
               | 
              
                11
               | 
              
                 class OperatorInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                12
               | 
              
                12
               | 
              
                     list_display = ('operator_id', 'phone', 'password', 'encryption', 'name', 'brand_id', 'brand_name', 'user_status', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                
               | 
              
                13
               | 
              
                +    list_filter = ('user_status', 'status', 'brand_name')
               | 
            
            
            
              | 
                13
               | 
              
                14
               | 
              
                     readonly_fields = ('encryption', 'brand_name')
               | 
            
            
            
              | 
                14
               | 
              
                15
               | 
              
                  
               | 
            
            
            
              | 
                15
               | 
              
                16
               | 
              
                     def save_model(self, request, obj, form, change): 
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -32,8 +33,8 @@ class BrandInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                32
               | 
              
                33
               | 
              
                  
               | 
            
            
            
              | 
                33
               | 
              
                34
               | 
              
                  
               | 
            
            
            
              | 
                34
               | 
              
                35
               | 
              
                 class ModelInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                35
               | 
              
                
               | 
              
                -    list_display = ('brand_id', 'model_id', 'model_name', 'model_descr', 'position', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                36
               | 
              
                
               | 
              
                -    list_filter = ('brand_id', 'status')
               | 
            
            
            
              | 
                
               | 
              
                36
               | 
              
                +    list_display = ('brand_id', 'brand_name', 'model_id', 'model_name', 'model_descr', 'position', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                
               | 
              
                37
               | 
              
                +    list_filter = ('brand_name', 'status')
               | 
            
            
            
              | 
                37
               | 
              
                38
               | 
              
                  
               | 
            
            
            
              | 
                38
               | 
              
                39
               | 
              
                     def save_model(self, request, obj, form, change): 
               | 
            
            
            
              | 
                39
               | 
              
                40
               | 
              
                         obj.brand_id = strip(obj.brand_id) 
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -47,7 +48,7 @@ class ModelInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                47
               | 
              
                48
               | 
              
                  
               | 
            
            
            
              | 
                48
               | 
              
                49
               | 
              
                 class ModelImageInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                49
               | 
              
                50
               | 
              
                     list_display = ('model_id', 'model_name', 'image', 'url', 'position', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                50
               | 
              
                
               | 
              
                -    list_filter = ('model_id', 'status')
               | 
            
            
            
              | 
                
               | 
              
                51
               | 
              
                +    list_filter = ('model_name', 'status')
               | 
            
            
            
              | 
                51
               | 
              
                52
               | 
              
                  
               | 
            
            
            
              | 
                52
               | 
              
                53
               | 
              
                     def save_model(self, request, obj, form, change): 
               | 
            
            
            
              | 
                53
               | 
              
                54
               | 
              
                         obj.model_id = strip(obj.model_id) 
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -61,7 +62,7 @@ class ModelImageInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                61
               | 
              
                62
               | 
              
                  
               | 
            
            
            
              | 
                62
               | 
              
                63
               | 
              
                 class DistributorInfoAdmin(admin.ModelAdmin): 
               | 
            
            
            
              | 
                63
               | 
              
                64
               | 
              
                     list_display = ('brand_id', 'brand_name', 'distributor_id', 'distributor_name', 'distributor_descr', 'position', 'status', 'created_at', 'updated_at')
               | 
            
            
            
              | 
                64
               | 
              
                
               | 
              
                -    list_filter = ('brand_id', 'status')
               | 
            
            
            
              | 
                
               | 
              
                65
               | 
              
                +    list_filter = ('brand_name', 'status')
               | 
            
            
            
              | 
                65
               | 
              
                66
               | 
              
                  
               | 
            
            
            
              | 
                66
               | 
              
                67
               | 
              
                     def save_model(self, request, obj, form, change): 
               | 
            
            
            
              | 
                67
               | 
              
                68
               | 
              
                         obj.brand_id = strip(obj.brand_id) 
               |