Changed to handle multiple instances (when using django admin inlines)