Skip to content

BaseNeuralyzer.Meta.model should be able to use string value #2

@RiwsPy

Description

@RiwsPy

Sometimes, it can be useful to use model such as a string like "app.model" instead of the python object. Django supports this very well.

But this case is not covered in ensure_fields_are_handled.

class PersonNeuralyzer(BaseNeuralyzer)
    class Meta:
        model = "app.Person"

I can create a PR for this if necessary.
Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions