Sunday, December 17, 2017

Django Admin - Inline Edit using XEditable

Hi ,

There is a"list_editable" option in django admin if we wanted to make inline edits. 
I am trying to make the field editable on click (using xEditable): https://vitalets.github.io/x-editable/demo-bs3.html
Here are the changes i did to implement the same:

  1. $('#csname').editable({
  2. type: 'text',
  3. pk: 1,
  4. url: '/post',
  5. title: 'Enter csname'
  6. });
Have included the relevant css and js files in the Media class of the Model Admin. Not able to make it work.

Could you please help to share some examples where xEditable is implemented in Django Admin.

Thank you.

Regards,
Venu

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8be57ba7-3d90-435f-b910-756c2fe7653f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment