> > nieuweklanten = ProfielenUserprofile.objects.all()[:1] >> for nieuwe in nieuweklanten: >> print(nieuwe.user.profielenprofielen.profielnaam) >> >> >> this for example works fine >> > but doing the same thing but then like this with works fine on i do a similar test on the default db but it fails on anything other then the default db
nieuweklanten = ProfielenUserprofile.objects.values('user__profielenprofielen_set__profielnaam')[:1] for nieuwe in nieuweklanten: print(nieuwe['user__profielenprofielen_set__profielnaam']) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/37dc3ea4-f32f-48bb-94c5-e8a9c55a8747%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.