observ this:
.objects(id=id).
.objects(id=id).
Armando Licurgo
2016-09-27 12:43 GMT-03:00 samer sarker <samerseu@gmail.com>:
--for id in taxi_id:
taxi = TaxiMaster.objects(id=id).first()
temp = BookedTaxi(
taxi_id=id,
driver_id=taxi.user_id,
is_seen=0,
is_accepted=0,
is_rejected=0
)
ValidationError at /action
u'5' is not a valid ObjectId, it must be a 12-byte input of type 'str' or a 24-character hex string
how to solve this error
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 post to this group, send email to django-users@googlegroups.com.
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/57545fd3- .2460-44ee-8988-079998523a54% 40googlegroups.com
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CAJjP4nM4F7Q6pT%2Bua2r%2Bs_U_01A0PbvjpcvcXzSPomonmCF7ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment