{"version":"1.0","type":"rich","title":"Gist 6138a5680dbc66f83c6d","description":"This example demonstrates a Django admin customization module that renders reverse foreign-key and one-to-one relationships as inline formsets, replacing the default select-box interface. The code uses Django’s `ModelAdmin`, `InlineModelAdmin`, and `BaseModelFormSet` to create `ReverseInlineFormSet`, which limits the formset to a single existing object or a single empty form, and supports tabular or stacked layouts via `inline_type`. It also references Django’s `csrf_protect_m`, `flatten_fieldsets`, and formset validation utilities, with the source being a gist by andybak adapted for Django 1.6.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-6138a5680dbc66f83c6d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}