Skip to content

Failure when inspecting reverse OneToOneFields #36

@aemdy

Description

@aemdy
class User(Model):
    meta = OneToOneField(UserMetadata, related_name='user')

class UserMetadata(Model):
    pass

When I try to compare UserMetadata instances, I get the following error:

Exception Type: AttributeError
Exception Value:    
'User' object has no attribute 'all'

It seems that it thinks it is a related manager instead of object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions