djangosnippets.org: Latest snippets tagged with 'tabular-inlines'https://djangosnippets.org/tags/tabular-inlines/2012-12-05T06:32:16.151110-06:00Django admin inline ordering - javascript only implementation
2012-12-05T06:32:16.151110-06:00ojhilthttps://djangosnippets.org/snippets/2858/<p>Having spent ages trying out various admin inline ordering packages and examples I found on here and elsewhere I failed to find a single one that did what I was after in the way I wanted or that worked, so I wrote one!</p>
<p>The general idea for this version was …</p>
Freely redistributableReadonly Tabluar Inline
2011-12-15T17:36:45.326789-06:00ckarrie2https://djangosnippets.org/snippets/2629/<p>An Image says more than 100 words: <a href="http://img39.imageshack.us/img39/6555/readonlytabularinline.png">readonlytabularinline.png</a></p>
<p>Use <code>editable_fields</code> to exclude some fields from being readonly.</p>
Freely redistributableGeoDjango maps in admin TabularInlines
2010-10-08T10:40:12.433362-05:00alanBhttps://djangosnippets.org/snippets/2232/<p>This snippet adds support for OSM maps for GeometryField in Admin TabularInlines.</p>
<p>The one possible issue with this snippet is that the OSMGeoInlineForm has to know about the parent ModelAdmin which it does through the code</p>
<p><code>model_admin_instance = admin.sites.site._registry[self.parent_model]</code></p>
<p>which won't work if you don't use the default model admin …</p>
Freely redistributable