Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    This works fine for value fields like strings and ints, but will have some problems with foreign keys and even more with many to many fields Commented Oct 18, 2016 at 20:19
  • Very good point! Especially for many to many. One would want to put some conditionals in to handle those cases appropriately, or limit this solution to simple models. Thanks. Commented Oct 19, 2016 at 2:02