Django : value too long for type character varying(30) when input not even 10 characters
===

I have a following `class`  


    class PlaylistManager(models.Manager):
    	def add_playlist(self, name):
    		playlist = Playlist(name=name)
    		playlist.save()
    		return playlist
    
    class Playlist(models.Model):
    	name = models.CharField(max_length=30)
    	date_created = models.DateTimeField(auto_now_add=True)
    	date_modified = models.DateTimeField(auto_now=True)
    	deleted = models.BooleanField(default=False)
    	objects = PlaylistManager() # is a customer manager
    	
    	class Meta:
    		db_table = 'playlists'

and my `test` is following  


    PLAYLIST = 'playlist' # 8 characters
    class PlaylistTest(TestCase):
    	def insert_playlist(playlist=PLAYLIST):
    		Playlist.objects.add_playlist(playlist)
    	
    	def test_add_one_video_to_playlist(self):
    		self.insert_playlist()
    		self.assertEqual(Playlist.objects.count(), 1, msg='playlist count is not 1, it is ' + str(Playlist.objects.count()))

when I test this I get following error   

    DatabaseError: value too long for type character varying(30)
    
    
    ----------------------------------------------------------------------
    Ran 1 test in 0.004s
    
    FAILED (errors=1)
    Destroying test database for alias 'default'...

**Question**  
- Why is that it is failing?  
- when i do `max_length=300` and run test, things are fine, but that is not desirable.

**UPDATE**

I am using `PostgreSQL` as backend