Django Admin - Inline Edit using XEditable

62 views
Skip to first unread message

Venugopal Vanarasi

unread,
Dec 17, 2017, 9:46:21 PM12/17/17
to Django users
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
Reply all
Reply to author
Forward
0 new messages