class AO_AppGroup(models.Model):
name = models.CharField(max_length=40,db_index=True) #组名称
iconurl = models.CharField(max_length=40) #图标资源
client = models.ForeignKey('AppClient',db_index=True) #组隶属于某一个具体的用户
aos = models.ManyToManyField('ActiveObject') #组内包含的ActiveObject
aos = AO_AppGroup.objects.get(client__id=1).aos.filter(id=1).count()