Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 6, 2010 20:45:50

r.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Main model name in Admin Site


Is there any possibility to name the main model? I don't mean the each
model class, but main wrapper for all classes in model. Now it takes
the name from the application name. I want to name it by my own.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 6, 2010 23:26:01

Konrad D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Main model name in Admin Site


On 6 December 2010 21:45, robos85 <prog...@gmail.com> wrote:
> Is there any possibility to name the main model? I don't mean the each
> model class, but main wrapper for all classes in model. Now it takes
> the name from the application name. I want to name it by my own.

You can set verbose_name in your model's "Meta" class. As for the app
name (simple to mistake if your app name is same as model's) - there's
no simple way to customise it right now (possibly coming in Django
1.4). You would need to override the templates.

Konrad

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 20th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support