Hi All!
My first post here, though I've been using Django for about 6 months.
I am building a site that will appear in three different languages
(maybe more, later), which means that every text field has to have
three text fields with the text for each language. After toying with
various inelegant solutions I have settled on have a model like this:
class TextItem(models.Model):
en_gb = models.TextField('UK English', blank=True)
en_us = models.TextField('US English', blank=True)
fr = models.TextField('French', blank=True)
with a ForeignKey into TextItem with a suitable related_name wherever
I would normally put a TextField. This is fine, but it means the
person inputting the text will get a new window every time they want
to edit some text - not ideal. Every attempt I have made to inline
these fields has failed because the TextItem model has no ForeignKey
into the Model being edited. I thought that changing the relationships
to ManyToMany might work, but no. Any suggestions?
I am using the newforms-admin branch, but I suppose I might as well
switch back to the trunk now it's been merged.
Thanks!
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---