#13710: raw() sql bug when using a model with many fields with long names ---------------------------------------------------+------------------------ Reporter: Renskers | Owner: nobody Status: new | Milestone: Component: Database layer (models, ORM) | Version: 1.2 Resolution: | Keywords: raw sql joins deffered class Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Changes (by ondrej.koh...@gmail.com):
* keywords: raw sql joins => raw sql joins deffered class Comment: We have the same problem '''even with a small number of fields'''. Using some_queryset.only('somefield') results in new model/contenttype creation with diferred fields. We've used this qs method in some south migration. South sends post_syncdb after model creations. Then django contrib.auth wants to add permission after receiving this signal and there is a problem with Permission.name (i.e. 'Can add page_ deferred_layout_migrated_site_id_skin_template') field size limited to max length=50 (or Permission.codename limited to 100) This is maybe more a problem of South application (sending signals of undeclared model creations), but this is also a cause of '''uncontrolled size of generated model name''' in deferred_class_factory() -- Ticket URL: <http://code.djangoproject.com/ticket/13710#comment:4> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.