OK解决了字段分类计数的问题

quote：

@jbub is right, you are using Django ORM wrong - referencing wrong
fields.
In your case obj.attribution is just a CharField.
What you probably want is:

 def mynumber(self, obj):
        return len(obj.myobject_set.all())
Ok解决了字段分类计数问题

good