Closed charludo closed 1 month ago
@charludo is this a duplicate of https://github.com/digitalfabrik/integreat-cms/issues/2806 or is it something different? :thinking:
@charludo is this a duplicate of #2806 or is it something different? 🤔
Oops, sorry about that - did not see this!
Describe the Bug
When creating a new page, django throws an error
ValueError: 'Page' instance needs to have a primary key value before this relationship can be used
. This is not critical, as page creation is still possible. Rather, this is a bug within theget_repr
method of thePage
model, whereself.best_translation
is accessed before that relation exists.Steps to Reproduce
http://localhost:8000/augsburg/pages/de/new/
Expected Behavior
No error
Actual Behavior
Error, but does not prevent page creation
Additional Information
Traceback
``` ```