Display api in particular format

2021-11-27 Thread Sapna Agrahari
Can anyone please help me with this? As I want to display the api data in
this format.
[image: image.png]

Thanks and Regards ,
*Sapna Agrahari*

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFx8_xf5d6r5cTv4i9OZyoZ2Y9_aJU9UgSNXs_ahKdhUVNQ1FQ%40mail.gmail.com.


Re: two modelformset_factory in one view , both model relates to each other

2021-11-27 Thread namo
please is there any solution ?

On Saturday, November 27, 2021 at 2:31:40 PM UTC+3 namo wrote:

> 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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e15e030a-372c-4814-80ad-cfc73a4d3bd1n%40googlegroups.com.


two modelformset_factory in one view , both model relates to each other

2021-11-27 Thread namo
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a15a5cbe-c679-4039-ad3e-ccf976198dccn%40googlegroups.com.


Re: Re-write an application from Turbogear to Django.

2021-11-27 Thread Derek
Agreed. You could also consider keeping Dojo and upgrading to the current 
version.

On Thursday, 25 November 2021 at 19:41:52 UTC+2 sutharl...@gmail.com wrote:

> I would have chosen the first option, since we can have some relationships 
> in the database and once all the apis are ready. We can easily pick React 
> part.
>
> On Thu, 25 Nov 2021 at 23:03, Stamatia  wrote:
>
>> Hi,
>>
>> I have a question that might need discussion.
>> I have a legacy application on Turbogears(1.5) and an old version of 
>> Dojo.js on front end and I want to re-write it on Django and Reactjs. 
>>
>> What is the best approach to do it?
>> Is it better: 
>> 1. to start with backend and re-write everything on Django and then to 
>> change the front end
>> 2. to change frontend and backend at the same time (step by step - page 
>> by page) 
>> 3. or to start with front end, apply the changes to current application 
>> and then to change backend?
>>
>> Thanks,
>> Stam
>>
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/84a7c2ee-5352-4231-8595-169b780cf3c9n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/240a402c-0f81-4595-9d8e-ca876dd11d19n%40googlegroups.com.