Hola, I'm using a standard view function to retrieve all details about an object:
header =[] headers = object._meta.get_all_field_names() row = [] for field in headers: value = getattr(object, field) row.append(value) to collect info on a particular object passed to a view. I was wondering how I might exclude the unicode markings on a test field (eg: u'text' ) from the output? IE, get rid of all the leading u's. I could just strip/slice but I presume there is a less clunky way? cheers L. -- Maya Otos (@maya_otos) tweeted at 9:27 PM on Tue, Jul 30, 2013: When you used to be punk, and now you are still punk but not as punk, are you post-punk or decaying punk or ex-punk or just not punk anymore -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.