I have a model which has been working up until now. The model has 2 classes that both have some fields with the same name. I had admin customised for class1 but not 2, although class 2 was registered with the admin so I could edit it. Now I want to customise class2 in the admin but 开发者_高级运维then I start getting _ name _ errors.
I think it is caused by the field names being the same in the different classes.
How can I setup the admin so it will work with 2 nearly identical classes
It turns out the error was being caused by:
filter_horizontal = ('screenshots')
Note the missing comma after the screenshots item:
filter_horizontal = ('screenshots',)
Thanks for having a look
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论