Skip to content

Drift command does not follow inheritance from abstract models #58

Description

@sevdog

VS Code version

None

OS

Ubuntu

Steps to reproduce

  1. Download django-guardian
  2. Launch uvx django-orm-lens drift
...
 ~ guardian.groupobjectpermission:
     migrated but no longer declared: content_type, group, object_pk, permission
 ~ guardian.userobjectpermission:
     migrated but no longer declared: content_type, object_pk, permission, user
...

It shows that UserObjectPermission and GroupObjectPermission have fields "migrated but no longer declared" while the fields are declared in abstract models from which these inherits.

Sample models.py (minimized)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions