Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

AttributeError: 'module' object has no attribute 'fields' #172

@lohxx

Description

@lohxx

This error is raised when i try to instantiate the InlineModel class.

Extension version: 0.16.0

code

from flask_potion.contrib import alchemy


    @ItemRoute.GET('/collapsed_credit_usage_user', Schema=FieldSet({
        'user': alchemy.fields.InlineModel({
            'id': fields.Integer(description='id do usuario')
        }, model=model_user.User)
        })
    )
    def collapsed_credit_usage_user(self, invoice, user):
        pass

Can anyone explain why is this happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions