On Mon, Jul 21, 2008 at 2:55 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> This is why i need to code a little mechanism to set the verbose_name
> property of Meta subclass of Model.
> I can't get it to work!

All of the options you're suggesting would work just fine if only Meta
ever got instantiated into an object. Alas, it doesn't. Django doesn't
really use it as a means to create an object, but more as a way to
create a separate namespace for all the various options you can set,
without getting in the way of model fields and methods.

Unfortunately, from your examples, I can't really figure out what
problem you're trying to solve, so I don't know what to recommend for
you. All I can say is that none of your attempts will work without
Meta being instantiated, which Django doesn't (and likely won't) do.

-Gul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to