class Movie(models.Model):
title= models.CharField(max_length=100,)
votes=models.IntegerField(null=True)
year=models.IntegerField(null=True)
aspect_ration=models.CharField(max_length=50,)
mpaa=models.CharField(max_length=200,)
rating =models.CharField(max_length=20,)
imdbid=models.CharField(max_length=50,)
top_250_rank=models.IntegerField(null=True)
cover_url=models.CharField(max_length=500,)
plot_outline=models.TextField(blank=True, null=True)
summary= models.TextField(blank=True, null=True)
pub_date = models.DateTimeField(null=True, blank=True,default=datetime.today())
akas_id = models.ManyToManyField('Akas', verbose_name=u'Akas ID',related_name="Akas_M2M_Movie")
class Akas(models.Model):
name=models.CharField(max_length=500,)
def __unicode__(self):
return u'%s' % (self.name)
class Meta:
verbose_name = 'Other Movie Title'
verbose_name_plural = 'Other Movie Titles'
db_table = 'Akas'
In the 'Akas' table i have 2225188 record So The Change view takes long time to load this field. What is the solution to resolve this issue ? Can i do pagination for the m2m widget ?
Can any one help for this issue ? In admin.py i am using filter_horizontal = ['Akas',]