I am using django with oracle database. I have a model that uses django-modeltranslation. When I add text for more than one language oracle database throws ORA-22284: duplicate LONG binds are not supported error. How can I solve it? I am new to StackOverFlow. Please, let me know if my question is not detailed well.
This is my model:
class About(models.Model):
image = models.ImageField(upload_to='about', verbose_name=_('Image'))
text = models.TextField(verbose_name=_("Text"))
phone = models.CharField(max_length=50, verbose_name="Phone")
address = models.CharField(max_length=255, verbose_name=_("Address"))
class Meta:
verbose_name = _("About")
verbose_name_plural = _("About")
def __str__(self):
return str(_('About AzeriCard'))
and this is translations.py
from app.models import *
from modeltranslation.translator import translator, TranslationOptions
class AboutTrans(TranslationOptions):
fields = ('text', 'address')