Skip to content

Subscription model not properly linking foreign key to account model #153

Open
@DeeeeLAN

Description

@DeeeeLAN

I don't know exactly why it doesn't work, but subscriptions are created with the account field set to null. I would guess it has something to do with using a function to retrieve the model, although I don't know why that would cause it to fail. However, since you already have the string, maybe it would be easier to just lazy load the model by passing the string in directly to the foreign key field.

I can successfully access the subscription by going user.customers.first().subscriptions.all().

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions