Skip to content

FastFixtureTestCase._fixture_teardown ignores m2m relations in fixtures #109

@dreynolds

Description

@dreynolds

If you define a fixture like this:

{
    "pk": 6, 
    "model": "auth.user", 
    "fields": {
        "username": "admin1", 
        "first_name": "", 
        "last_name": "", 
        "is_active": true, 
        "is_superuser": false, 
        "is_staff": true, 
        "last_login": "2011-07-25 11:22:27", 
        "groups": [
            1
        ], 
        "user_permissions": [], 
        "password": "!", 
        "email": "", 
        "date_joined": "2011-07-25 11:22:27"
    }
}

Then the groups is ignored by FastFixtureTestCase._fixture_teardown. This causes a lot of error like those shown in #99

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions