Django inlineformset autocomplete and autopopulate by ajax

2015-02-12 Thread Ajay Kumar
I'm trying to do this following link feature in django, http://demo.smarttutorials.net/jquery-autocomplete/ Here by choosing country the rest of the fields will be auto populated, like this i'm trying to achieve in django, If any idea pls tell me it will be very great for me This is Product

Django Inline formset with jquery

2015-02-16 Thread Ajay Kumar
Hello all, I'm trying to build this following link feature in django, http://demo.smarttutorials.net/jquery-autocomplete/ Here by choosing serial_no and the rest of the fields name and author should be auto populate. Auto populate works for first inline formset and able to save it but when I

The inline foreign key did not match the parent instance primary key.

2015-05-09 Thread Ajay Kumar
I'm trying to set custom id for my model, *models.py* from django.db import models import uuid def get_ref_id(): ref_id = str(uuid.uuid4())[:11].replace('-','').lower() try: id_exists = Sample.objecsts.get(ref_id = ref_id) get_ref_id() except: return ref_id class Sample(models.Model):

Django inline formset(UI) delete/remove

2015-05-11 Thread Ajay Kumar
I'm trying to do a inline formset with UI not with dajngo built in inlineformset_factory form.Here i'm done with add_view and edit_view.Here in the edit view i can update the existing record for the both parent and child model,and can add new record to the child model.But i cant remove the exis

Django simple Captacha

2016-07-19 Thread Ajay Kumar
hi Guys I tried django-simple-captcha on refering http://django-simple-captcha.readthedocs.io/…/la…/usage.html . Every thing works well and goes fine, I need few suggestion on it. 1. How efficiency is this? 2. How strong is th

customise list editable based on user group in django-admin

2016-11-10 Thread Ajay Kumar
I have two types of users - 1 superuser and 2 support user I need to customise list_editable so that only superuser can edit and support user can only view that field in django-admin interface. Please let me know which function do I need to override and how to do this. -- You received this messa