Quantcast
Viewing all articles
Browse latest Browse all 232

Article 9

`assert other_model.related_field is not None`

passes, but on the next line

`assert my_model.pk is not in OtherModel.objects.filter(related_name__isnull=True).values_list(“related_field__pk”, flat=True)`

doesn’t pass


Viewing all articles
Browse latest Browse all 232