How to solve ORA-22284: duplicate LONG bindings not supported error in django

I am using django with oracle database. I have a model that uses django-modeltranslation. When I add text for multiple Oracle databases, Oracle ORA-22284: duplication of LONG bindings is not supported. How can i solve this? I am new to StackOverFlow. Please let me know if my question is not specified.

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')
+4
source share

Source: https://habr.com/ru/post/1687670/


All Articles