Opened 5 years ago

Closed 5 years ago

#20669 closed Cleanup/optimization (wontfix)

Layermapping can fail with TypeError

Reported by: jinglesboiler@… Owned by: nobody
Component: GIS Version: 1.5
Severity: Normal Keywords:
Cc: jinglesboiler@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


because "m" (~ line 554) may have been created via a variety of ways, it appears that in some cases it may not have the "using" keyword as an argument (perhaps not created correctly as a Model object?). (I've seen this problem repeatedly on batch imports)

Change History (1)

comment:1 Changed 5 years ago by Claude Paroz

Component: UncategorizedGIS
Resolution: wontfix
Status: newclosed
Type: UncategorizedCleanup/optimization

I guess that such an error is a symptom of a bad overridden save() method of some model (missing **kwargs in the method signature).

Seeing a similar situation in loaddata, we are not catching TypeError there, so I'm not inclined to accept it here.

If my analysis seems wrong, feel free to reopen with a test case if possible.

Note: See TracTickets for help on using tickets.
Back to Top