From bb1f7457f90f51a531bca2dfc3527432898b0b09 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Thu, 27 Feb 2020 17:12:00 +0530 Subject: updated ui and fixed code --- arduino_blog/static/admin/js/prepopulate_init.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) mode change 100644 => 120000 arduino_blog/static/admin/js/prepopulate_init.js (limited to 'arduino_blog/static/admin/js/prepopulate_init.js') diff --git a/arduino_blog/static/admin/js/prepopulate_init.js b/arduino_blog/static/admin/js/prepopulate_init.js deleted file mode 100644 index 184df92..0000000 --- a/arduino_blog/static/admin/js/prepopulate_init.js +++ /dev/null @@ -1,10 +0,0 @@ -(function($) { - 'use strict'; - var fields = $('#django-admin-prepopulated-fields-constants').data('prepopulatedFields'); - $.each(fields, function(index, field) { - $('.empty-form .form-row .field-' + field.name + ', .empty-form.form-row .field-' + field.name).addClass('prepopulated_field'); - $(field.id).data('dependency_list', field.dependency_list).prepopulate( - field.dependency_ids, field.maxLength, field.allowUnicode - ); - }); -})(django.jQuery); diff --git a/arduino_blog/static/admin/js/prepopulate_init.js b/arduino_blog/static/admin/js/prepopulate_init.js new file mode 120000 index 0000000..4ce01b2 --- /dev/null +++ b/arduino_blog/static/admin/js/prepopulate_init.js @@ -0,0 +1 @@ +/home/prashant/www/html/python/python_3.x/arduino-hosting/env-arduino/lib/python3.6/site-packages/django/contrib/admin/static/admin/js/prepopulate_init.js \ No newline at end of file -- cgit