#5793: Allow custom attributes in Meta classes
----------------------------+-----------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody    
  Status:  new              |   Component:  Metasystem
 Version:  SVN              |    Keywords:            
   Stage:  Unreviewed       |   Has_patch:  0         
----------------------------+-----------------------------------------------
 In some cass it is useful to be able to store meta information on models
 inside the model class. In Django the Meta subclass is used to achieve
 this. Trying to add a custom attribute to a model's Meta inner class
 results in an exception though, thrown from django.db.models.options,
 which does indeed check any valid attribute names and raises an exception
 when unknown names are found.
 Is there any reason for this somewhat strange behaviour, not to allow a
 developer to add non-standard meta information to a model class (which can
 later on be used in eg view code)?

 Thanks!

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5793>
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