Created by: dsolomadin
This PR adds support of has_one
relations in your models. HasOne relation will be rendered as nested form.
Couple of questions related to PR:
- I wasn't able to find any docs on how exactly this feature should be implemented, is the Nested Form a correct approach here? I definitely see uses for it (at the very least we need this feature internally), but does that makes sense in the grand scheme of things for Administrate?
- I'm not sure if styles here are correct.
Here are some screenshots on how it looks like in the sample application: New Product Form Product Index Page Product View Page Product View Page
Fixes #443 (closed)
PS. Open to any suggestions / comments, I'd really like to see that or something similar in Administrate so will change PR accordingly