Re: module 'django.db.models' has no attribute 'Foreignkey'

2018-11-20 Thread matteo gassend (LanguageMatt)
no problem Il 20 nov 2018, 18:38 +0100, Avitab Ayan Sarmah , ha scritto: > Thanks for your support. I will check and fix it. Thanks > > > On 20-Nov-2018 11:06 PM, "matteo gassend (LanguageMatt)" > > wrote: > > > A ForeignKey requires an “on_delete” argume

Re: module 'django.db.models' has no attribute 'Foreignkey'

2018-11-20 Thread matteo gassend (LanguageMatt)
A ForeignKey requires an “on_delete” argument. This is the function(kinda) that will be called when you decide to delete an instance of said model. You can see it being used on the Django official tutorial, https://docs.djangoproject.com/en/dev/intro/tutorial02/#creating-models Il 20 nov 2018,

Re: module 'django.db.models' has no attribute 'Foreignkey'

2018-11-20 Thread matteo gassend (LanguageMatt)
the k in ForeignKey is Capitalized Il 20 nov 2018, 17:57 +0100, Avitab Ayan Sarmah , ha scritto: > Hi everyone, > > I have written a code in models.py inside my project folder. I have completed > my code and whenever i execute "python manage.py makemigrations first_app", i > get an error. The

Re: How to add form field dynamically?

2018-09-26 Thread matteo gassend (LanguageMatt)
You could always mix jquery with formsets Il 26 set 2018, 18:02 +0200, Joel Mathew , ha scritto: > You would use jquery to create the button using the $(selector).html(code). > Since this doesnt fall within the scope of this django group, I wont > elaborate. If you know basic javascript and