Oh right, the first set of parens are needed to form the tuples.

-- 
Dan Poirier <dpoirier@caktusgroup.com>


On Thu, Nov 14, 2013 at 11:50 AM, Andrei Hajdukewycz <
notifications@github.com> wrote:

> In mozillians/users/models.py:
>
> >      user = models.ForeignKey(UserProfile)
> > -    username = models.CharField(max_length=255, verbose_name=_lazy('Account Username'))
> > -    type = models.PositiveIntegerField(
> > +    identifier = models.CharField(max_length=255, verbose_name=_lazy('Account Username'))
> > +    type = models.CharField(
> > +        max_length=30,
> >          choices=sorted([(k, v['name'])
> >                          for (k, v) in ACCOUNT_TYPES.iteritems()], key=lambda x: x[1]),
>
> "syntax error" disagrees with you :p
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla/mozillians/pull/681/files#r7664943>
> .
>