#6990 (Cannot resolve keyword 'postings_by_recipient' into field.)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kokkuvõte
We currently have this in the run_generators task on stewards.
Here is the full traceback:
Traceback (most recent call last):
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/lino/modlib/linod/mixins.py", line 174, in start_task
await sync_to_async(self.run_task)(ar)
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/asgiref/sync.py", line 526, in __call__
ret = await asyncio.shield(exec_coro)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/asgiref/sync.py", line 581, in thread_handler
return func(*args, **kwargs)
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/asgiref/sync.py", line 508, in func
return context.run(run_child)
~~~~~~~~~~~^^^^^^^^^^^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/asgiref/sync.py", line 506, in run_child
return child()
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/lino/modlib/linod/models.py", line 27, in run_task
return self.procedure.run(ar)
~~~~~~~~~~~~~~~~~~^^^^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/lino/modlib/linod/choicelists.py", line 55, in run
return self.func(ar)
~~~~~~~~~^^^^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/lino_xl/lib/postings/models.py", line 117, in run_generators
for obj in pg.get_postings(ar, today):
~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/lino_xl/lib/postings/choicelists.py", line 75, in get_postings
qs = qs.exclude(postings_by_recipient__date=today)
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/django/db/models/query.py", line 1550, in exclude
return self._filter_or_exclude(True, args, kwargs)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/django/db/models/query.py", line 1560, in _filter_or_exclude
clone._filter_or_exclude_inplace(negate, args, kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/django/db/models/query.py", line 1568, in _filter_or_exclude_inplace
self._query.add_q(~Q(*args, **kwargs))
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/django/db/models/sql/query.py", line 1676, in add_q
clause, _ = self._add_q(q_object, can_reuse)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/django/db/models/sql/query.py", line 1708, in _add_q
child_clause, needed_inner = self.build_filter(
~~~~~~~~~~~~~~~~~^
child,
^^^^^^
...<7 lines>...
update_join_types=update_join_types,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/django/db/models/sql/query.py", line 1556, in build_filter
lookups, parts, reffed_expression = self.solve_lookup_type(arg, summarize)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/django/db/models/sql/query.py", line 1363, in solve_lookup_type
_, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lino/lino_local/stewards/env/lib/python3.13/site-packages/django/db/models/sql/query.py", line 1842, in names_to_path
raise FieldError(
...<2 lines>...
)
django.core.exceptions.FieldError: Cannot resolve keyword 'postings_by_recipient' into field. Choices are: addr1, addr2, address_column, age, album, album_id, authority, bday, birth_date, blogs_entry_set_by_user, body, body_full_preview, body_short_preview, build_method, cal_event_set_assigned, cal_event_set_by_user, cal_guest, cal_guest_id, cal_recurrentevent_set_by_user, cal_room_set_by_user, cal_subscription_set_by_user, cef_level_de, cef_level_en, cef_level_fr, checkdata_message_set_by_user, city, city_id, clothing_size, comments_comment_set_by_user, comments_reaction_set_by_user, contact_details, country, country_id, courses_course_set_by_user, courses_enrolment_set_by_user, created, created_natural, current_group, current_group_id, date_format, email, end_date, enrolments_by_pupil, event_type, event_type_id, experience, fax, first_name, forget_me_since, full_page, groups_membership_set_by_user, gsm, guest, hide_age, id, initials, language, language_knowledge, languageknowledge, last_login, last_name, list_item, lists_list_set_by_user, lists_member_set_by_user, mail_mode, modified, mother_tongues, municipality, name_column, navigation_panel, nickname, notes_note_set_by_user, notify_message_set_by_user, notify_myself, open_session_on_new_ticket, overview, password, phone, polls_poll_set_by_user, polls_response_set_by_user, preview, region, region_id, remarks, rowselect, shoe_size, start_date, status, street, street_box, street_no, street_prefix, study, thumbnail, training, uploads_upload_set_by_user, url, user_type, username, users_authority_set_by_user, verification_code, verification_code_sent_on, verification_password, workflow_buttons, working_contract_set_by_user, working_session_set_by_user, zip_code
Children
Kommentaarid
- 1 kuu, 3 nädalat ago by Luc Saffre about #6990 (Cannot resolve keyword 'postings_by_recipient' into field.) : Aha, here is the explanation. In pm shell on stewards:
>>> from lino.api.shell import * >>> dd.plugins.postings.recipient_model 'contacts.Partner'
IOW the lino_patrols seems to not be the latest version. - 1 kuu, 3 nädalat ago by Luc Saffre about #6990 (Cannot resolve keyword 'postings_by_recipient' into field.) : Created new Ticket #6990 (Cannot resolve keyword 'postings_by_recipient' into field.).