On 14/12/2017 11:14 AM, Udit Vashisht wrote:
Thanks for the reply. I am new to python and django. Will have to
google a lot to understand your solution :-)
Look at models.ForeignKey ...
https://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey
When you add a foreign key field to a t
On 14/12/2017 3:15 AM, Udit Vashisht wrote:
I have an outside python function which reads a csv from web and fetch
certain data in forms of tuple. So that i can use that tuple in my
python models for choices in one of the fields. Till now i am running
the function independently and copying the
I have an outside python function which reads a csv from web and fetch
certain data in forms of tuple. So that i can use that tuple in my python
models for choices in one of the fields. Till now i am running the function
independently and copying the returned tuple to my models.py for choices.
3 matches
Mail list logo