You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi !
I was experimenting with <a href='{% url "review_create" content_type=book object_id=id %}'>{% trans "Review this book" %}</a>
I realized when I register my book object with object id 1 and when it gets a PK from python id, instead of using object_id, I need to use that pk. Is that a bug or feature ? Because when I look at object_id tag, I think about ContentType relations and want to fill that tag with object_id.
Summary :
Book object created with object_id, positive integer field = 2
Python assigned PK 1 to Book object
Tag asks me to put object_id, I pass 2, doesn't work
Tag asks me to put object_id, I pass 1(PK), works
Did I misunderstood the concept or is this a feature ➿
I could set object_id class as PK but I'm not really fan of it.
Thanks !
The text was updated successfully, but these errors were encountered:
Hi !
I was experimenting with
<a href='{% url "review_create" content_type=book object_id=id %}'>{% trans "Review this book" %}</a>
I realized when I register my book object with object id 1 and when it gets a PK from python id, instead of using object_id, I need to use that pk. Is that a bug or feature ? Because when I look at object_id tag, I think about ContentType relations and want to fill that tag with object_id.
Summary :
Book object created with object_id, positive integer field = 2
Python assigned PK 1 to Book object
Tag asks me to put object_id, I pass 2, doesn't work
Tag asks me to put object_id, I pass 1(PK), works
Did I misunderstood the concept or is this a feature ➿
I could set object_id class as PK but I'm not really fan of it.
Thanks !
The text was updated successfully, but these errors were encountered: