Probably because you have two AutoFields. You can’t have two in the same
model. Set this to eid=models.AutoField(primary_key=True)

This is because Django models automatically makes an id autofield primary
key if nothing else is set as pk.

On Sun, May 26, 2019 at 9:05 PM Bob Gailer <[email protected]> wrote:

> On May 26, 2019 8:16 PM, "Saeed Pooladzadeh" <[email protected]> wrote:
> >
> >
> > Hi
> >
> > When I add this line in my model:
> >
> > eid=models.AutoField()
> >
> > I see error in my migration!!
> >
> > What is the problem?
> >
> > I don't know what your problem is but our problem is that we have no
> idea what error you got. Please copy and paste the entire error message
> into your reply and also reply all so that everyone gets to read your
> response stop
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP1rxO7ROcWYL9LYO4XMt8_gHmgd74gMJ%3D0yo2pjdegkNekZfQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAP1rxO7ROcWYL9LYO4XMt8_gHmgd74gMJ%3D0yo2pjdegkNekZfQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJVmkNm2OS-G0x8X8Vzv42qA5nua6mW_j6rR8hE10%2BCcrrtjxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to