Add search_dbref alias for dbref_search. Resolve #2995.
This commit is contained in:
parent
c3abc6340c
commit
8181c215e8
1 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,6 @@ import shlex
|
||||||
|
|
||||||
from django.db.models import Count, ExpressionWrapper, F, FloatField, Q
|
from django.db.models import Count, ExpressionWrapper, F, FloatField, Q
|
||||||
from django.db.models.functions import Cast
|
from django.db.models.functions import Cast
|
||||||
|
|
||||||
from evennia.typeclasses.attributes import Attribute
|
from evennia.typeclasses.attributes import Attribute
|
||||||
from evennia.typeclasses.tags import Tag
|
from evennia.typeclasses.tags import Tag
|
||||||
from evennia.utils import idmapper
|
from evennia.utils import idmapper
|
||||||
|
|
@ -476,6 +475,8 @@ class TypedObjectManager(idmapper.manager.SharedMemoryManager):
|
||||||
return self.filter(id=dbref)
|
return self.filter(id=dbref)
|
||||||
return self.none()
|
return self.none()
|
||||||
|
|
||||||
|
search_dbref = dbref_search # alias
|
||||||
|
|
||||||
def get_dbref_range(self, min_dbref=None, max_dbref=None):
|
def get_dbref_range(self, min_dbref=None, max_dbref=None):
|
||||||
"""
|
"""
|
||||||
Get objects within a certain range of dbrefs.
|
Get objects within a certain range of dbrefs.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue