integreat-cms icon indicating copy to clipboard operation
integreat-cms copied to clipboard

Fix loadtestdata not working after adding a new model

Open david-venhoff opened this issue 9 months ago • 3 comments

Short description

This pr attempts to fix the problem that the test data cannot be loaded anymore after a new model gets added.

I apologize for the huge diff :see_no_evil: is there maybe a way to reduce the diff, other than doing it manually?

Proposed changes

  • Regenerate the test data with ./tools/integreat-cms-cli dumpdata --natural-primary --natural-foreign --o test_data.json
  • Handle an exception that occurs when loading feedback and the base object is not available yet

Resolved issues

Fixes: #2763


Pull Request Review Guidelines

david-venhoff avatar May 06 '24 15:05 david-venhoff