Re: Trying to understand duplicate results from related_set

2021-04-01 Thread Ryan Nowakowski
Maybe it has something to do with the fact that once you start iterating through a query set it gets evaluated[1]. If you slice a query set before it gets evaluated that is different than slicing a query set after it gets evaluated. I'm not exactly sure why you're getting different results but

Trying to understand duplicate results from related_set

2021-03-31 Thread Michael Ross
Hello, my first post here. I've been poking at this duplicate result thing and it's come down to maybe a fundamental what-does-django-do question: class Medium(models.Model): artifact = models.ForeignKey('Artifact', on_delete=models.PROTECT) class Artifact(models.Model): def get_mediu