Re: error save to model on a onto many relationship

2021-06-10 Thread Abdul Qoyyuum
What happens if you try and save choice#3 in question 1 only? Can you try in the Python shell? On Friday, June 11, 2021 at 8:38:37 AM UTC+8 suabiut wrote: > I am running to some issue saving to models in a one to make relationship. > The error is described Here >

error save to model on a onto many relationship

2021-06-10 Thread sum abiut
I am running to some issue saving to models in a one to make relationship. The error is described Here . I would appreciate it if you could point me in the right direction. cheers, -- You received

Re: [DRF] Serializing a field of type choice

2021-06-10 Thread ezequia...@gmail.com
I solved the problem using a SerializerMethodField. Thank you anyone. On Thursday, June 10, 2021 at 11:47:37 AM UTC-3 nik...@exiverlabs.co.in wrote: > You must me getting the keys of your choices rather than your choice text > , you can override the field with serializer method field and ret

Re: Aide pour erreur

2021-06-10 Thread Roger Gammans
Hi My french isn't great, and this list mostly uses English, so you'll probably get a better response if you can post in English even if you resort to google translate (like I have below ) but I think the intent of your email was clear. Your error was "view stocksystema.views.home didn't return an

Re: [DRF] Serializing a field of type choice

2021-06-10 Thread Nikeet NA
You must me getting the keys of your choices rather than your choice text , you can override the field with serializer method field and return your text according to your choice key. On Thu, 10 Jun 2021 at 09:57, Lalit Suthar wrote: > can I see that model field, I don't think any extra configu

Heroku error after deployment of Django API

2021-06-10 Thread Rudrakshi soni
My API gets deployed but when I check the endpoints of the URL then it's showing an error that tables are missing even after running the Heroku migrations also. I am using the default SQLite db of Django. -- You received this message because you are subscribed to the Google Groups "Django user

Aide pour erreur

2021-06-10 Thread Dieu merci Dramani
Bonjour tous ! Je suis nouveau en django-python et j'apprends. voici le fichier contenant le sms d'erreur. -- 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 djan

Re: [DRF] Serializing a field of type choice

2021-06-10 Thread ezequia...@gmail.com
*Here is my attempt:* question_type = ( (1, 'Discussion'), (2, 'Multiple Choice'), (3, 'Writing'), (4, 'Objective'), (5, 'True or False'), (6, 'Practice'), ) *model.py* class Question(models.Model): de_description = models.TextField(max_length=255) cd_type_o

Re: Is async class-based view available?

2021-06-10 Thread Lalit Suthar
these are some resource available which can help you https://www.youtube.com/watch?v=19Uh_PA_8Rc https://testdriven.io/blog/django-async-views/ On Thu, 10 Jun 2021 at 10:27, kazuki wrote: > I know this However, I don't know how to use it. > How can I use this to create an asynchronous AsyncListV