搞定了!这样就可以了!谢谢! def up_load(self, request, queryset): for self.object in queryset: self.object.id=None Filter_Item.objects.create( name=self.object.name, commodity_id=self.object.commodity_id, category_id=self.object.category_id, value_type=self.object.value_type )

‘字段1=self.id,’ 报了这样的错误object has no attribute 'id'