Hi,

I'm using django-multilingual to get some models translated, but I
found two errors.

class Translation(multilingual.Translation):
        title = models.CharField(max_length=120, blank=True)
        introduction = models.TextField(blank=True)
        body = models.TextField(blank=True)
        slug = models.SlugField(blank=True)

On my admin.py file, I put it like this:

class NewsItemAdmin(multilingual.ModelAdmin):
    prepopulated_fields = {"slug": ("title",)}
    list_display = ('title',)
    search_fields = ('title',)

The problem is that it won't prepopulate the different slug fields. If
you think about a news item, it will have different titles per
language and so the slug should be different as well. Has anyone come
across this and is it possible to work around it?

Another thing that is not working is markdown. In my save def I put
the same columns as the ones in the Translation class but it won't
work. I thought it would just easily create several body_XX and
body_html_XX, where XX is the language code, but it won't. I keep
getting a module error.

Thank you,

Frederico
--~--~---------~--~----~------------~-------~--~----~
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