Hi Lucas. The development version of django is unstable so if you choose to use it, you should not be surprised if strange things like what you have described happen. Also, _meta is a private part of the code base that can change anytime. On 7 Jun 2014 21:18, "Lucas Sampaio" <lu...@lsmagalhaes.com> wrote:
> Hello everyone, > > I'm new in this group, I'm a brazilian web developer trying to set up a > new project using Django 1.7b4 (I couldn't wait to test the new migrations > app). > > Problem is: I need to write a Serializer, like Django-REST-Framework > does[1], but there's a problem: I don't know why, but > Model._meta.get_all_related_objects() always returns [ ]. The same code > running with Django 1.6 works as expected. Also, the models I'm using for > tests are defined on "libs.tests.examples.models". I don't know if it might > be a problem. > > Is there anything I can do to make it work or is it really a bug with 1.7? > > []s, > Lucas S. > > [1]: > https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/serializers.py#L734 > > -- > 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/813a4ab4-215f-44cc-aec1-fa58919e8623%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/813a4ab4-215f-44cc-aec1-fa58919e8623%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BWjgXPgPk1V6xB%2BaPw6eGyhhZHgw9_0sFB52frMT4DfCugAPw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.