1. Andrew Godwin
  2. south


and...@69d324d9-c39d-4fdc-8679-7745eae9e2c8  committed d363628

More cruft cleaning continues my trend of one-line commits.

  • Participants
  • Parent commits e199295
  • Branches default

Comments (0)

Files changed (1)

File orm.py

View file
         fake_locals = dict(inspect.getmodule(self.cls).__dict__)
         # Remove all models from that (i.e. from modern models.py), to stop pollution
-        removed_models = []
         for key, value in fake_locals.items():
             if isinstance(value, type) and issubclass(value, models.Model) and hasattr(value, "_meta"):
                 del fake_locals[key]