Les relations dans Creme [résolu]
#3
Un grand merci pour vos réponses et vos conseils. Ils sont très précieux.

Bon, j'ai quasiment réglé tous les problèmes — non sans mal pour les relations : j'ai tout repris à zéro — reste l'erreur liée à ma vue en liste pour ma classe Checkup que je pensais pourtant pouvoir facilement résoudre.

Voici l'erreur 500 dans son ensemble :
Citation :Internal Server Error: /activities/checkups
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/home/jerome/public_html/gst09/creme/activities/views/checkup.py", line 33, in listview
return list_view(request, Checkup)
File "/home/jerome/public_html/gst09/creme/creme_core/views/generic/listview.py", line 175, in list_view
template_name, template_dict = list_view_content(request, model, *args, **kwargs)
File "/home/jerome/public_html/gst09/creme/creme_core/views/generic/listview.py", line 168, in list_view_content
hf.populate_entities(entities.object_list, request.user)
File "/home/jerome/public_html/gst09/creme/creme_core/models/header_filter.py", line 155, in populate_entities
CremeEntity.populate_credentials(entities, user)
File "/home/jerome/public_html/gst09/creme/creme_core/models/entity.py", line 165, in populate_credentials
creds_map = EntityCredentials.get_creds_map(user, entities)
File "/home/jerome/public_html/gst09/creme/creme_core/models/auth.py", line 171, in get_creds_map
if not entities:
File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 113, in __nonzero__
iter(self).next()
File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 107, in _result_iter
self._fill_cache()
File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 772, in _fill_cache
self._result_cache.append(self._iter.next())
File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 273, in iterator
for row in compiler.results_iter():
File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 680, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 725, in execute_sql
sql, params = self.as_sql()
File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 60, in as_sql
ordering, ordering_group_by = self.get_ordering()
File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 349, in get_ordering
self.query.model._meta, default_order=asc):
File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 378, in find_ordering_name
opts, alias, False)
File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/query.py", line 1260, in setup_joins
"Choices are: %s" % (name, ", ".join(names)))
FieldError: Cannot resolve keyword 'd' into field. Choices are: ability, albumin, audiotest, cardiovascular, created, credentials, cremeentity_ptr, customfieldboolean, customfielddatetime, customfieldenum, customfieldfloat, customfieldinteger, customfieldmultienum, customfieldstring, day, diet, digestive, dither, endocrin, entity_type, entityasdata, feedback, filespe, genuri, header_filter_search_field, hearing, height, hematopoietic, history, historyline, id, instanceblockconfigitem, integument, is_actived, is_deleted, lastevents, medfindings, modified, mover, name, nervous, ocular, origin, otherexam, otherfindings, outcome, pressuremax, pressuremin, properties, psyche, pulmonary, pulse, radio, radiology, received_lw_mails, relations, relations_where_is_object, respiratory, risknature, rootnode, semifixedrelationtype, specialist, specialty, spirometry, sugar, suppexa, tiredness, user, varices, visiotest, weight, workstation

Je ne sais pas d'où cela peut provenir.

J'ai bien effacé les instances liées à ma vue dans la base, puis la vue elle-même. Creme me demande à nouveau de choisir les colonnes à afficher, et même en les limitant au maximum, ça ne fonctionne pas : même message après validation.
  Répondre


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 2 visiteur(s)