Thursday, August 10, 2023

hello i have made my crud and it works well. but when i add fields in the class. the crud does not work

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/77ad79f8-fe76-4d70-87ef-c35128075fd8n%40googlegroups.com.

No comments:

Post a Comment