Try to delete the files that are in the migrations directory of your app
and do the migrations again
Le jeu. 10 août 2023 à 17:11, Abdoulaye SENE
a écrit :
> class Administratif(models.Model):
> nom = models.CharField(max_length=250)
> prenom = models.CharField(max_length=250)
> email
On 10/08/2023 23.07, Abdoulaye SENE wrote:
i have to add fields to my class. because i have other fields.normal
this problem has a solution
If this problem has a normal solution, have you considered using that
solution?
I don't understand why you're looking for an abnormal solution if the
i have to add fields to my class. because i have other fields.normal this
problem has a solution
Le jeu. 10 août 2023 à 19:04, 'Kasper Laudrup' via Django users <
django-users@googlegroups.com> a écrit :
> On 10/08/2023 19.11, Abdoulaye SENE wrote:
> > class Administratif(models.Model):
> > nom
On 10/08/2023 19.11, Abdoulaye SENE wrote:
class Administratif(models.Model):
nom = models.CharField(max_length=250)
prenom = models.CharField(max_length=250)
email = models.EmailField(max_length=250)
tel = models.IntegerField()
annEmploi = models.IntegerField(null=True,)
def __str__(self):
retu
class Administratif(models.Model):
nom = models.CharField(max_length=250)
prenom = models.CharField(max_length=250)
email = models.EmailField(max_length=250)
tel = models.IntegerField()
annEmploi = models.IntegerField(null=True,)
def __str__(self):
return self.nom
5 matches
Mail list logo