Skip to content

ModelMixin.model_mixin classmethod typo #2

@rscottco

Description

@rscottco

This last for-loop raises an AttributeError in django 1.4.5 (not tested on anything else, sorry):

            for (fieldname, fields.field) in fields.items():
                field.contribute_to_class(subclass, fieldname)

The 'fields.field' is a typo and the following seems to pass fine now

            for (fieldname, field) in fields.items():
                field.contribute_to_class(subclass, fieldname)

Thanks for sharing the library, I'm just giving it a test-run to see how well it runs.

S

PS. Any chance for a note regarding the decorated 'mixin' function?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions