e.add(rel_opts,"At least one field in %s should have core=True, because it's being edited inline by %s.%s."%(rel_opts.object_name,opts.module_name,opts.object_name))
exceptStopIteration:
pass
# Check unique_together.
forutinopts.unique_together:
forfield_nameinut:
try:
f=opts.get_field(field_name,many_to_many=True)
exceptmeta.FieldDoesNotExist:
e.add(opts,'"unique_together" refers to %s, a field that doesn\'t exist. Check your syntax.'%field_name)
else:
ifisinstance(f.rel,meta.ManyToMany):
e.add(opts,'"unique_together" refers to %s. ManyToManyFields are not supported in unique_together.'%f.name)