Ok your idea worked just fine, but i keep coming up with new
questions :)
The result of it was that when i opened poll i got poll with name
So i wrote something (i dont know how its called - model instance?
model manager?) to retrieve the actual value of translation and my
poll model looks like
On Apr 14, 3:45 pm, matehat 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 mode
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 r
Admin for language:
from kyss.front.models import lang
from django.contrib import admin
class FrontAdmin(admin.ModelAdmin):
fieldsets = [
('General info', {'fields': ['name', 'short', 'locale',
'encoding',
'url', 'fdef', 'bdef']}),
('SEO stuff', {'fields':
Hi,
can you show us the code for each of your admin classes? This probably
has something to do with some method overrides, but I can't say much
about the cause of your problem from the error message you gave...
Cheers
Mathieu
--~--~-~--~~~---~--~~
You received th
I realise im kind of spamming here, but does nobody really has
encountered similar problem?
Alan.
On Apr 11, 12:07 am, zayatzz wrote:
> Ok, I did some search on web and i took closer look at the
> errormessage. :
>
> Request information
> GET
>
> No GET data
> POST
> Variable Value
> pol
Ok, I did some search on web and i took closer look at the
errormessage. :
Request information
GET
No GET data
POST
VariableValue
poll-trans-content_type-object_id-0-keel
u'1'
poll-trans-content_type-object_id-0-id
u''
poll-trans-content_type-object_id-1-keel
u'2'
poll-trans-content_type
does anyone know how to solve this problem?
Alan
On 9 apr, 21:54, zayatzz wrote:
> Thanks.
>
> That worked for enabling translations for poll names - i had to insert
> 'from django.contrib.contenttypes import generic', right?
> It worked, but it raised few more questions. When creating poll i g
Thanks.
That worked for enabling translations for poll names - i had to insert
'from django.contrib.contenttypes import generic', right?
It worked, but it raised few more questions. When creating poll i get
lines for name translations now and in front of each of them there is
language drop down m
First of all, the ModelAdmin needs to know about how to handle the
generic relations and whether you even need them to appear. You need
to subclass "generic.GenericTabularInline" (in the same way you
subclassed "admin.ModelAdmin") and specify fields you want to be able
to edit on that Trans object
10 matches
Mail list logo