AttributeError: 'Options' object has no attribute 'get_all_related_objects'
FrancescoSaverioZuppichini opened this issue · comments
Francesco Saverio Zuppichini commented
Hello,
I get this error:
AttributeError: 'Options' object has no attribute 'get_all_related_objects'
This is my code:
user = User.objects.get(pk=user_id)
print(serialize(user))
class User(models.Model):
displayName = models.CharField(max_length=28)
email = models.CharField(max_length=28)
isNearby = models.BooleanField(default=False)
Any Idea?
Byron Ruth commented
What version of Django are you using?
Francesco Saverio Zuppichini commented
latest one
Byron Ruth commented
Ah, this package has been tested up to 1.10. They must have changed something in 1.11.
Francesco Saverio Zuppichini commented
My version:
(1, 10, 5, 'final', 0)
Byron Ruth commented
I never made a release with the new version! Just released 1.2.1.
Francesco Saverio Zuppichini commented
Nice bro.