Hi In my project I want to store an integer as the username
To randomly allocate a new username I need the list of available usernames (integer type list) I tried the following ways user_list=[] user_list=list(User.objects.values('username').order_by('username')) and when I try to print the values of list , it actually represents a string like ('fieldname':'value') >>> fun(user_list) {'username': u'1'} {'username': u'103'} {'username': u'11'} {'username': u'121'} {'username': u'13'} {'username': u'13421'} {'username': u'1342323221'} {'username': u'1342333661'} {'username': u'134563661'} Is there a django way of retrieving only the values as a list and not the fieldname Thanks in advance Subramanyam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---