The following code reproduces an issue I'm getting on prod with verbose_name. When using .only(), the class changes, and Meta does not get inherited.
Trac is being even more terrible than usual, I've been trying to file a bug for the past 15 minutes. I'd love to work on a patch, hopefully get this fixed before 1.2 as it looks like a minor fix. Any idea? *- from django.db.models import Model, fields class TestModel(Model): name = fields.CharField(max_length=64) summary = fields.TextField() class Meta: verbose_name = "fooo" def __unicode__(self): return self._meta.verbose_name >>> from testapp.models import TestModel >>> obj = TestModel(name="bar") >>> obj.save() >>> TestModel.objects.filter(pk=1).only("name") [<TestModel_Deferred_summary: test_model_ deferred_summary>] J. Leclanche / Adys -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.