title: django postgresql OperationalError: index row size xxx exceeds maximum yyy
body: <p>I am trying to learn a bit of django and trying to insert some values in a database (using model forms), but this seems failing citing:</p>
  
  <pre><code>django.db.utils.OperationalError: index row size 3008 exceeds maximum 2712 for index "appname_mymodel_ggg_like"
  </code></pre>
  
  <p>My models are quite simple and look like so:</p>
  
  <pre><code>class myModel(TimeStampedModel):
  
      fff =  models.URLField(db_index=False, blank=False,primary_key=False) 
      ggg = models.TextField(db_index=False, blank=False,primary_key=False)
      mj = models.BooleanField(db_index=False, blank=False, primary_key=False,  default=False) # req field
  
  def __unicode__(self):
      return self.fff
  </code></pre>
  
  <p>Does this mean that the string is long (yes it is, but not a 1MB string or anything)? This is the reason I was using text field.. but this does not seem to help.</p>
  
  <p>Any hints would be appreciated..</p>