摘要:
from django.db import models class MyCharfield(models.Field): def __init__(self,max_length,*args,**kwargs): self.max_length = max_length super(MyCharfield,self).__init__(max_leng... 阅读全文
摘要:
from django.db import models class MyCharfield(models.Field): def __init__(self,max_length,*args,**kwargs): self.max_length = max_length super(MyCharfield,self).__init__(max_leng... 阅读全文