No problem. Glad you got it sorted.
On Tue., 4 Jun. 2019, 8:16 am Ankhi Roy, wrote:
> Hey,
>
> Nevermind I have solved the problem.
> I was in an impression that I need to create a seperate database
> equivalent to django model form. Then realised that Django automatically
> creates a database t
With your form.save() call try passing commit=True so it looks like
form.save(commit=True)
On Tue., 4 Jun. 2019, 1:39 am Ankhi Roy, wrote:
> Hi,
>
> I am using Django admin - 2.2.1 and Postgresql as my database. So my
> problem is I have saved the user entered data in form.py on "POST" Request
>
Hey,
Nevermind I have solved the problem.
I was in an impression that I need to create a seperate database equivalent
to django model form. Then realised that Django automatically creates a
database table like databasename_modelclassname and have all the columns as
per Django model form.
Anyway t
Hi,
I am using Django admin - 2.2.1 and Postgresql as my database. So my
problem is I have saved the user entered data in form.py on "POST" Request
but it isn't saving in the postgresql database.
Model.py -
class modelForm(models.Model):
CHOICES = [('Y', 'Yes'),
('N', 'No'
4 matches
Mail list logo