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
In this case slug is a field in the Portal model, but it is not the primary key, nor is its data show in one of the table's columns. The whole purpose of using the slug is for a user-friendly url and portals in this case are the top object that all things relate back to.
As a temporary fix, I can set primary_key='slug' and change action_pk_placeholder=':slug' and it will work. But, this logic is misleading since slug is not really the model's primary key
Can we implement a way to allow for placeholders of all fields in the db model?
In this case
slug
is a field in thePortal
model, but it is not the primary key, nor is its data show in one of the table's columns. The whole purpose of using the slug is for a user-friendly url and portals in this case are the top object that all things relate back to./<portal_slug>/edit
/<portal_slug>/delete
/<portal_slug>/accounts
/<portal_slug>/accounts/new
/<portal_slug>/accounts/1/edit
/<portal_slug>/accounts/1/delete
/<portal_slug>/reports
The text was updated successfully, but these errors were encountered: