-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using InstanceSelectorPanel with ClusterableModel #10
Comments
I'm not sure actually. I've never tried using ClusterableModel directly. From memory, wagtail Page models use ClusterableModel under the hood, but I've never had any problems with InstanceSelectorPanel on a Page's admin detail. Maybe there's something missing in your admin wiring? How are you declaring the admin for the Hotel model? |
Another possibility, there might be some kind of ClusterableModel model hook in wagtail that we'd need to opt into handling. If so, I'd expect there's an I don't have the time currently to dig into this myself, but I'm more than happy to help in any small ways. Providing context or explanations, etc. |
@markfinger I switched to AutocompletePanel (wagtail-autocomplete) for this type of models, its not as convenient but it works.
My AdminView is simple and it is the same as the other models (not ClusterableModel and they work fine):
For now I am Ok with using wagtail-autocomplete, but I will dig more into it when I finish this project or I really need it. |
Hello,
I am using InstanceSelectorPanel to provide a way to add ForeignKey values to a model with search (since the data may be huge later on), also I want to use Orderable to provide images to my model.
Now I have this error:
"<Hotel: Hotel object (None)>" needs to have a value for field "id" before this many-to-many relationship can be used.
code:
So is there any possible way I can go around this ?
Thanks.
The text was updated successfully, but these errors were encountered: