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

2023-08-11 Thread Modou Aicha Diop
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 = 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+unsubscr...@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
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMF4DA5YoPgM6XkFmmR8re0n4oX27P69LR2JqeTFheR3qUqefw%40mail.gmail.com.


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

2023-08-10 Thread 'Kasper Laudrup' via Django users

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 
normal solution will work just fine.


That is, of course, assuming that you want things to work. Maybe that's 
not the case?


Kind regards,
Kasper Laudrup

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0606ac32-60d0-4a17-94ba-deb44138c3a6%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


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

2023-08-10 Thread Abdoulaye SENE
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 = 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
> >
>
> If it works when you don't add fields to the class, then don't add
> fields to the class.
>
> That way it will continue to work and will not stop to work.
>
> I assume you prefer it work instead of not working?
>
> Kind regards,
> Kasper Laudrup
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4179188c-96c0-4725-906c-01112c3ecf57%40stacktrace.dk
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK9RMT3H%2BXAqOM11g0Q9ZGDRZV16uNG6fmAVk6MKt8bg6AUgGw%40mail.gmail.com.


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

2023-08-10 Thread 'Kasper Laudrup' via Django users

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):
return self.nom



If it works when you don't add fields to the class, then don't add 
fields to the class.


That way it will continue to work and will not stop to work.

I assume you prefer it work instead of not working?

Kind regards,
Kasper Laudrup

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4179188c-96c0-4725-906c-01112c3ecf57%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


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

2023-08-10 Thread Abdoulaye SENE
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+unsubscr...@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.