Hi , i'm trying to implement two formset in one view , one of the formsets
should be pop up modal form : here is the models
*note : if it requires i'll pay for that task *
*class MobileCollection(models.Model): *
*mobile =
models.ForeignKey(ModelCategory,on_delete=models.PROTECT,related_name='model_category')
*
*qnt = models.IntegerField() *
*price = models.DecimalField(decimal_places=3,max_digits=20) *
*class Imei(models.Model): *
* mobile = models.ForeignKey(MobileCollection,on_delete=models.PROTECT) *
* imei = models.CharField(max_length=15,unique=True) serial_no =
models.CharField(max_length=7,unique=True,blank=True,null=True) status =
models.BooleanField(default=True) def __str__(self): return
f'{self.mobile}-{self.imei}'*
if quantity = 10 then we have 10 unique imei , for each mobile item we have
multiple imei , the im ei should be inserted in a pop up modal
here is the entire question on stackoverflow
https://stackoverflow.com/questions/70132955/how-to-save-two-model-formset-in-one-view-django-jquery
thank you in advance ..
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/a15a5cbe-c679-4039-ad3e-ccf976198dccn%40googlegroups.com.