djangosnippets.org: Latest snippets posted by facundo_olanohttps://djangosnippets.org/users/facundo_olano/2011-10-21T15:46:38.312378-05:00facundo_olanoRemove old fields on dumpdata generated json
2011-10-21T15:46:38.312378-05:00facundo_olanohttps://djangosnippets.org/snippets/2576/<p>A small script that takes a manage.py dumpdata generated json file, and removes fields of the specified models. I needed this because i kept my initial data on a json file and after I removed a field on one of my models, the script wouldn't work anymore.</p>
Freely redistributableModelList class
2011-03-02T15:35:34.207725-06:00facundo_olanohttps://djangosnippets.org/snippets/2374/<p>This class makes easier the job of rendering lists of model instances in django templates. It's intended to mimic the behavior of the Model Forms in that it contains the code needed to render it as an HTML table and makes it easy to handle all the model lists from …</p>
Freely redistributable