#3591: add support for custom app_label and verbose_name
---------------------------+------------------------------------------------
   Reporter:  jkocherhans  |                Owner:  adrian                
     Status:  assigned     |            Component:  Core framework        
    Version:  SVN          |           Resolution:                        
   Keywords:               |                Stage:  Design decision needed
  Has_patch:  1            |           Needs_docs:  0                     
Needs_tests:  0            |   Needs_better_patch:  0                     
---------------------------+------------------------------------------------
Comment (by Eli Courtwright <[EMAIL PROTECTED]>):

 Replying to [comment:15 ubernostrum]:
 > #4470 was a duplicate.
 
 That ticket would have fixed the problem of app_label being required when
 using the Django ORM outside of an actual Django application.  I often
 write programs at my job which use the Django ORM for non-website
 programming, but I always have to add the Meta class to the model
 definition, which is ugly and looks like black magic to my co-workers who
 aren't familiar with Django internals:
 
 {{{
 class Something(models.Model):
     class Meta:
         app_label = ""
 
     name        = models.CharField(maxlength=100)
     description = models.TextField()
     quantity    = models.IntegerField()
 }}}
 
 This ticket doesn't seem to address this problem, whereas ticket #4470
 did.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3591#comment:16>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to