@py ev.managers.objects.get_objs_with_attr('xyz') <<< File "/home/latitude/evennia/src/typeclasses/managers.py", line 187, in func <<< matches = make_iter(method(self, *args, **kwargs)) <<< File "/home/latitude/evennia/src/objects/manager.py", line 102, in get_objs_with_attr <<< return list(self.filter(cand_restriction & Q(objattribute__db_key=attribute_name))) <<< File "/usr/lib64/python2.7/site-packages/django/db/models/manager.py", line 163, in filter <<< return self.get_queryset().filter(*args, **kwargs) <<< File "/usr/lib64/python2.7/site-packages/django/db/models/query.py", line 590, in filter <<< return self._filter_or_exclude(False, *args, **kwargs) <<< File "/usr/lib64/python2.7/site-packages/django/db/models/query.py", line 608, in _filter_or_exclude <<< clone.query.add_q(Q(*args, **kwargs)) <<< File "/usr/lib64/python2.7/site-packages/django/db/models/sql/query.py", line 1198, in add_q <<< clause = self._add_q(where_part, used_aliases) <<< File "/usr/lib64/python2.7/site-packages/django/db/models/sql/query.py", line 1228, in _add_q <<< current_negated) <<< File "/usr/lib64/python2.7/site-packages/django/db/models/sql/query.py", line 1232, in _add_q <<< current_negated=current_negated) <<< File "/usr/lib64/python2.7/site-packages/django/db/models/sql/query.py", line 1100, in build_filter <<< allow_explicit_fk=True) <<< File "/usr/lib64/python2.7/site-packages/django/db/models/sql/query.py", line 1351, in setup_joins <<< names, opts, allow_many, allow_explicit_fk) <<< File "/usr/lib64/python2.7/site-packages/django/db/models/sql/query.py", line 1274, in names_to_path <<< "Choices are: %s" % (name, ", ".join(available))) <<< FieldError: Cannot resolve keyword 'objattribute' into field. Choices are: db_attributes, db_cmdset_storage, db_date_created, db_destination, db_home, db_key, db_location, db_lock_storage, db_player, db_sessid, db_tags, db_ typeclass_path, destinations_set, hide_from_objects_set, homes_set, id, locations_set, receiver_object_set, scriptdb, sender_object_set
Comment #1
Posted on Dec 23, 2013 by Grumpy BearFixed this in my clone, 08b5afc77c6f
Created attribute stuff/xyz = "stuff"
ev.managers.objects.get_objs_with_attr('xyz') <<< []
Changing this to db_attributes instead of objattribute did the trick.
Comment #2
Posted on Jan 4, 2014 by Grumpy BearThis issue was closed by revision 08b5afc77c6f.
Comment #3
Posted on Jan 4, 2014 by Happy BearThis issue was closed by revision 4f8768744421.
Status: Fixed
Labels:
Type-Defect
Priority-Normal