NMGRL / pychron

Data acquisition and processing framework for Ar-Ar geochronology and noble gas mass spectrometry
http://pychron.readthedocs.org/en/latest/
Apache License 2.0
26 stars 26 forks source link

Sample trackers - sample's name bug #2171

Closed juliariccinmgrl closed 2 years ago

juliariccinmgrl commented 2 years ago

Impossible to reach the information of a sample for changing them by clicking on its name (I would like to change a analyzed sample name for which there is an error).

BUG:

ValueError at /samples/5009/

Expected table or queryset, not SafeString
Request Method: | GET -- | -- http://129.138.12.35:1337/labs/argon/sampletracker/samples/5009/ 3.2.7 ValueError Expected table or queryset, not SafeString /usr/local/lib/python3.9/site-packages/django_tables2/templatetags/django_tables2.py, line 145, in render /usr/local/bin/python 3.9.6 ['/home/app/web', '/usr/local/lib/python3.9/site-packages/git/ext/gitdb', '/home/app/web', '/usr/local/bin', '/usr/local/lib/python39.zip', '/usr/local/lib/python3.9', '/usr/local/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/site-packages', '/usr/local/lib/python3.9/site-packages/gitdb/ext/smmap'] Mon, 23 May 2022 14:38:34 -0600

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.

ValueError at /samples/5009/ Expected table or queryset, not SafeString Request Method: GET Request URL: http://129.138.12.35:1337/labs/argon/sampletracker/samples/5009/ Django Version: 3.2.7 Exception Type: ValueError Exception Value: Expected table or queryset, not SafeString Exception Location: /usr/local/lib/python3.9/site-packages/django_tables2/templatetags/django_tables2.py, line 145, in render Python Executable: /usr/local/bin/python Python Version: 3.9.6 Python Path: ['/home/app/web', '/usr/local/lib/python3.9/site-packages/git/ext/gitdb', '/home/app/web', '/usr/local/bin', '/usr/local/lib/python39.zip', '/usr/local/lib/python3.9', '/usr/local/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/site-packages', '/usr/local/lib/python3.9/site-packages/gitdb/ext/smmap'] Server time: Mon, 23 May 2022 14:38:34 -0600 Error during template rendering In template /home/app/web/templates/base.html, error at line 52 Expected table or queryset, not SafeString 42 43 44
jirhiker commented 2 years ago

@juliariccinmgrl The process for editing a sample that already has been analyzed is a little more complicated than one that has not.

Currently there is no way to edit a sample that has been analyzed from SampleTracker. I will resolve the bug and the sample name issue next week