Re: User model as ForeignKey forcing username instead of id.

2022-11-23 Thread Erik Manuel Herazo Jimenez
why don't you try to return it by context using a dictionary?, specify where what is the key and what is the value El mié, 23 de nov. de 2022 10:19 a. m., Blaine Wimberly < blaine5...@gmail.com> escribió: > Issue resolved. > > In pure frustration, I dumped the database and deleted all migrations.

Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-27 Thread Erik Manuel Herazo Jimenez
hello, you must apply the default=None, or default="" feature, so that those fields can be filled. ex: details1 = models.CharField(max_length=500, default="") El sáb, 25 mar 2023 a la(s) 07:59, Ebenezer Otchere (swazyman1...@gmail.com) escribió: > Am new in django and have been getting errors in