阅读背景:

如何在Django-admin中查找存储为整数的自定义IP地址字段?

来源:互联网 

In my Django model I've created custom MyIPAddressField which is stored as integer in mysql backend. To do that I've implemented to_python, get_db_prep_value, get_iternal_type (returns PositiveIntegerField) and formfield methods (uses stock IPAddressField as form_class).In my Django model I've created custom MyIPAddr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: