Removed unneeded try/except in Query.names_to_path().
This commit is contained in:
parent
df1796b13f
commit
3b2db6ec12
|
@ -1324,10 +1324,7 @@ class Query(object):
|
||||||
"querying. If it is a GenericForeignKey, consider "
|
"querying. If it is a GenericForeignKey, consider "
|
||||||
"adding a GenericRelation." % name
|
"adding a GenericRelation." % name
|
||||||
)
|
)
|
||||||
try:
|
model = field.model._meta.concrete_model
|
||||||
model = field.model._meta.concrete_model
|
|
||||||
except AttributeError:
|
|
||||||
model = None
|
|
||||||
else:
|
else:
|
||||||
# We didn't find the current field, so move position back
|
# We didn't find the current field, so move position back
|
||||||
# one step.
|
# one step.
|
||||||
|
|
Loading…
Reference in New Issue