Sorry but i cant find how can i get or filter by ObjectIdField
Python script
I have the next model
class AuditNames(models.Model):
_id = models.ObjectIdField()
name = models.CharField(max_length=256)
type_name = models.CharField(max_length=256)
action = models.CharField(max_length=256)
And here i am trying to make the query.
auditid = "60ec1636a6bdc7cf5c710449"
# auditid = ObjectIdField(auditid) # Also i am trying this way but its imposible
audit_name = aUDITnAMES.objects.get(_id = auditid)
One line description of the issue
Sorry but i cant find how can i get or filter by ObjectIdField
Python script
I have the next model
And here i am trying to make the query.
Traceback
matching query does not exist.