Migration issue?

47 views
Skip to first unread message

Alex Bredikin

unread,
Mar 12, 2024, 5:23:25 PMMar 12
to QATrack+
Hi all,

I'll try to keep this simple. I have some technical background but I'm definitely no pro, so I'm reaching out for some help.

I was trying to get the SQL Query Tool running, and in the process, I broke something - just not exactly sure what. I was trying to follow along from the docs and other posts on the Google Group, and my best guess is that I improperly/incorrectly did a migration at some point.

When I do python manage.py migrate, I get an exception on "units" that says KeyError: 'date_changed_old' and "django.core.exceptions.FieldDoesNotExist: UnitAvailableTime has no field named 'date_changed_old'".

Some strange behaviors I notice now:
  • Whenever I go to add a new group OR modify an existing one on the admin site, the "Default Group" box is always checked off. If I uncheck it and then reload the page... it shows up as checked off again when the page is done loading.
  • I have two identical user groups "Medical Physicist" (made before my work on getting the Query Tool working) and "Test" (made after).
    • They have exactly the same user rights.
    • But, when I add a user to the "Test" and then go to the "Choose a Unit to Perform QC On" page, it appears totally blank.
Any thoughts or leads on fixing this? I'm on version 3.1.1.3.

Lesson learned not to tinker too much on the backend :(

Thank you,
Alex

Randle Taylor

unread,
Mar 15, 2024, 2:48:40 PMMar 15
to Alex Bredikin, QATrack+
Hi Alex,

It does seem like a migration has gone awry at some point...can you post the output of python manage.py showmigrations?  That will allow me to see what migrations have been applied so far.  Is this on SQL Server?  Is it a production database or are you just getting a new database set up?

Randy

--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qatrack/622dc652-aaef-49a2-894d-8ee604f0d06dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages