Django automatically creates an id field as primary key.
Now I need to get the object by this id.
object = Class.objects.filter()
How
You can also do:
obj = ClassModel.get_by_id(object_id)
This works, but there may I'm not sure if it's supported in Django 2.