Coder Social home page Coder Social logo

lin-cms-flask-core's People

Contributors

colorful3 avatar dependabot[bot] avatar faronsince2016 avatar sunlin92 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lin-cms-flask-core's Issues

lin.py 有一个致命bug

   def init_app(
        self,
        app,
        group_model=None,
        user_model=None,
        identity_model=None,
        permission_model=None,
        group_permission_model=None,
        user_group_model=None,
        jsonencoder=None,
        sync_permissions=True,
        mount=True,
        handle=True,
        syslogger=True,
    ):
        # load default lin db model if None
        if not group_model:
            from .model import Group

            group_model = Group
        if not user_model:
            from .model import User

            self.user_model = User 
        if not permission_model:
            from .model import Permission

            permission_model = Permission
        if not group_permission_model:
            from .model import GroupPermission

            group_permission_model = GroupPermission

这里self..user_model,不应该有self,否则下面初始化manager的时候有问题

使用postgres数据库兼容问题

[SQL: INSERT INTO lin_user_identity (delete_time, is_deleted, user_id, identity_type, identifier, credential) VALUES (%(delete_time)s, %(is_deleted)s, %(user_id)s, %(identity_type)s, %(identifier)s, %(credential)s) RETURNING lin_user_identity.id]
[parameters: {'delete_time': None, 'is_deleted': False, 'user_id': 1, 'identity_type': 'USERNAME_PASSWORD', 'identifier': None, 'credential': 'pbkdf2:sha256:260000$L661sSOrTEiLxWsG$49288ec31c6fd650dbfed174572f0a28d713b0a4b06cebe5172e4b00a653e07a'}]
(Background on this error at: https://sqlalche.me/e/14/9h9h)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.DatatypeMismatch) column "mount" is of type smallint but expression is of type boolean
LINE 1: ..., mount) VALUES (NULL, false, '删除图书', '图书', true),(NUL...
                                                             ^
HINT:  You will need to rewrite or cast the expression.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.