[Answer]-Django Model Objects

1πŸ‘

βœ…

In Python, Unicode string literals are prepended with u or U:

In Python source code, Unicode literals are written as strings prefixed with the β€˜u’ or β€˜U’ character: u'abcdefghijk'. Specific code points can be written using the \u escape sequence, which is followed by four hex digits giving the code point. The \U escape sequence is similar, but expects 8 hex digits, not 4.

So what you’re seeing simply indicates that your values are Unicode strings, not regular strings. If you use one of those values you generally won’t see the u, e.g.

>>> print u'My String'
My String
πŸ‘€Chris

Leave a comment