core: fix serialization error for template

when importing template, the object is serialized to the db,
because there are 2 methods to get name, an error is raised.

this patch add ignore to one of the methods to fix this problem.

Change-Id: I43a1777b038c433bc301eee69aee3549f680805f
Signed-off-by: Omer Frenkel <ofrenkel@redhat.com>