Fix AttributeErrors in django 1.6.

rel_name is not available on BaseInlineFormSet as of
https://github.com/django/django/commit/3647c0a49a2f4535b8a9aba40e662743e4d53e76

get_ordered_objects was removed because of https://code.djangoproject.com/ticket/19469