Xavier-Lam / wechat-django

WeChat-Django旨在为接入微信公众平台的django开发者提供便捷的微信功能封装及最基本的后台管理支持
MIT License
199 stars 65 forks source link

NullBooleanField is deprecated warnings #20

Closed JoshYuJump closed 1 year ago

JoshYuJump commented 1 year ago

Django version: 3.2.18

System check identified some issues:
WARNINGS:
wechat_django.Article.need_open_comment: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
    HINT: Use BooleanField(null=True) instead.
wechat_django.Article.only_fans_can_comment: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
    HINT: Use BooleanField(null=True) instead.
wechat_django.WeChatUser.subscribe: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
    HINT: Use BooleanField(null=True) instead.
wechat_django_pay.UnifiedOrderResult.is_subscribe: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
    HINT: Use BooleanField(null=True) instead.
wechat_django_pay.UnifiedOrderResult.sub_is_subscribe: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
    HINT: Use BooleanField(null=True) instead.
Xavier-Lam commented 1 year ago

这个已经比较久没有维护了,支援的是比较早期的django及python版本,可以考虑本地安装后修改这个field,这些字段的修改应该不会有什么太大不良影响

JoshYuJump commented 1 year ago

@Xavier-Lam 暂时不影响使用,这个库挺好的,不维护有点可惜了。有 alternative 吗?

Xavier-Lam commented 1 year ago

没有 因为我本职工作不是python 业余时间写的 后来没有需求使用就没维护了