摘要:
model.py class SysPermission(models.Model): id = models.CharField(db_column='Id', primary_key=True, max_length=50) # Field name made lowercase. parent 阅读全文
摘要:
原始SQl语句: select ip, group_concat(id) as id from whitelist group by ip; 方法一: Django-ORM实现: 1、创建Concat类: from django.db.models import Aggregate, CharFie 阅读全文