added the new get_field API

Oh no! I commented it to see if tests were working and committed it by
mistake.

On Friday, August 8, 2014, Ian Foote <notifications@github.com> wrote:

> In django/db/models/options.py:
>
> > +        #if 'many_to_many' in kwargs:
> > +
> > +            # If no many_to_many fields are wanted, create a new dictionary with
> > +            # without ManyToManyField instances.
> > +            #if kwargs['many_to_many'] is False:
> > +                #field_map = dict((name, field) for name, field in six.iteritems(field_map)
> > +                                 #if not isinstance(field, ManyToManyField))
> > +
> > +            # We always want to throw a warning if many_to_many is used regardless
> > +            # of if it alters the return type or not.
> > +            #warnings.warn(
> > +                #"The 'many_to_many' argument on get_fields will be soon "
> > +                #"deprecated. This parameter has changed in favor of "
> > +                #"'m2m'. Please change your implementation accordingly.",
> > +                #RemovedInDjango20Warning
> > +            #)
>
> Why is this section commented out?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/PirosB3/django/pull/6/files#r16010076>.
>


-- 
*************

PirosB3

https://github.com/PirosB3 <http://pirosb3.com>