Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature Request: Manager methods to return querysets rather than lists #1206
Brief summary of issue / Description of requested feature:
Today, many of Evennia's custom managers (such as
This feature request proposes to make all manager methods return querysets the same way Django's normal manager methods do.
Reasons for adding feature:
The original reason for Evennia's manager methods returning lists/individual objects was that Evennia's Typeclass system was separate from Django models - hence the managers must all make sure to return typeclasses rather than dbobjects. To this end, the managers all processed the returned database objects and converted them safely to lists of Typeclasses before returning. These days however, typeclasses are proxy models and the normal database operations return them directly. No conversion is needed and instead it's them being returned as lists that is the problem.
Extra information, such as Evennia revision/repo/branch, operating system and ideas for how to solve / implement:
This is a big enough API change that it will go into the devel branch leading up to Evennia 0.7.