On Apr 14, 3:45 pm, matehat <mathieu.damo...@gmail.com> wrote:
> Sorry about the last post (was a little tired from a sleepless night
> of solving problems in physics ...). I think you can solve the issue
> by putting "return unicode(self.name)" instead of "return self.name"
> in all of the __unicode__ method of your models. The things is that
> you must make sure to return unicode object in that method.
>
> Another thing that pops in my mind from inspecting your code is that
> line in TranslationInline,
>
> >class TranslationInline(generic.GenericTabularInline):
> >        model = Trans
> >        extra = len(lang.objects.all())
>
> where it would be more efficient to do :
>
> extra = lang.objects.count()
>
> But that's just optimization stuff...

Thanks for the info and tip :). I'll test it as soon as i get home.

Perhaps you can provide little more help about the django admin. That
extra there is meant to provide exactly right amount of fields for
each object, that i create, but if you use one saving option of django
admin you get more fields, which are completely unnecessary. Is there
a simple way to limit the amount of those fields and nothing more?

Alan.
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to