Wednesday, June 27, 2018

Re: better way to create a dictionary in Django model?

It has some limit- The configuration object can only be changed, there's no link for "add" (1)

On Wednesday, June 27, 2018 at 6:41:41 PM UTC+5:30, Egor Smolyakov wrote:
Better way it to use packages like this https://github.com/lazybird/django-solo

On 27 June 2018 at 15:18, prateek gupta <gupt...@gmail.com> wrote:
Hi All,

I am using Django 2.0.6 with Python 3.6 and MySql and created a model which maps the db tables to django.
In my database, I have a column 'config' of type json.
This column stores the data in a dictionary format like below- 
{"user_id": "a...@example.com", "password": "xyz"}
I need to make it editable via the Django like below screen shot-


I need your suggestion - what is the best way to achieve this?
I found a useful link for this purpose -how-to-store-a-dictionary-on-a-django-model but want to take your valuable guidance before proceeding so that I can implement with best practices.

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/eeaba88f-136a-4e03-9599-b564a596bdf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Kind Regards, Yehor Smoliakov.



--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/44e2b155-e62a-4724-9cb5-32437ca471d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment