Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'class Meta' got invalid attribute(s): translate #20

Open
ghost opened this issue Dec 11, 2018 · 5 comments
Open

TypeError: 'class Meta' got invalid attribute(s): translate #20

ghost opened this issue Dec 11, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 11, 2018

I'm on Django 2.1.
This error appears on trying makemigrations with a basic model:

from django.db import models
from django.utils.translation import ugettext as _
# 2nd party
from linguo.models import MultilingualModel # used for internationalization of models
from linguo.managers import MultilingualManager # used for internationalization of models


# Create your models here.
class Chapter(MultilingualModel):
    number = models.IntegerField(verbose_name=_('number'))
    title = models.CharField(max_length=255, verbose_name=_('title'))
    
    class Meta:
        translate = ('number', 'title')
@ReadMost
Copy link

How did you solve this issue. I have the same one

@gustavklopp
Copy link

gustavklopp commented Jun 27, 2019

I've given up this app because I haven't found any solutions. This module is probably not maintained anymore. Sorry

@ReadMost
Copy link

Can you give a suggestion for django multilingual model like linguo?

@gustavklopp
Copy link

No. I've even given up on this idea eventually.

@carpoca
Copy link

carpoca commented Aug 20, 2019

Any answer for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants