﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24418	refresh_from_db is breaking on null foreign keys	Johannes Lerch	nobody	"If i try to call refresh_from_db on a model instance that has a foreignkey set to null, i get an error:

(stacktrace was removed after ticket was resolved)

here rel_instance is assigned: 
https://github.com/django/django/blob/stable/1.8.x/django/db/models/base.py#L630

if it is None (foreignkey not set, as it is nullable in this model) the getattr function will complain that it can not get 'id' from 'NoneType'"	Bug	closed	Database layer (models, ORM)	1.8alpha1	Release blocker	fixed			Ready for checkin	1	0	0	0	0	0
