title: Django vs MySQL uuid
body: <p>Django noob here</p>
  
  <p>I have created a model using</p>
  
  <pre><code>customer_id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
  </code></pre>
  
  <p>After migrating the model to MySQL, I tried to add data into mysql using </p>
  
  <pre><code>insert into customer_customer (customer_id, ...) values (uuid(), ...)
  </code></pre>
  
  <p>The data gets inserted properly in MySQL with a unique code, however, when I try to display this via Django admin tool (this table feeds into a property for users), it throws a badly formatted uuid error.</p>
  
  <pre><code>File "/usr/lib/python2.7/uuid.py", line 134, in __init__
  raise ValueError('badly formed hexadecimal UUID string')
  ValueError: badly formed hexadecimal UUID string
  </code></pre>
  
  <p>Please discuss if there is another way of creating seed data directly in MySQL.</p>