commit | 113c2b935fb560c893d982f26a67b00f638dd6c7 | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <sapan@opennetworking.org> | Tue Jul 25 08:41:58 2017 -0400 |
committer | Sapan Bhatia <sapan@opennetworking.org> | Tue Jul 25 23:15:20 2017 -0400 |
tree | 8a8c7f59c206b6c178313d0a1b477b97d23acb24 | |
parent | 9227b4df2b1677db514226f0d34b78b6556970af [diff] [blame] |
CORD-1594: Tag models with information about the leaf model, for casting generic instances into specialized ones Change-Id: I7b0f283b11380363742a284dc794bf3914e81fc9
diff --git a/lib/xos-genx/xosgenx/targets/service.xtarget b/lib/xos-genx/xosgenx/targets/service.xtarget index a48abb7..80d90d6 100644 --- a/lib/xos-genx/xosgenx/targets/service.xtarget +++ b/lib/xos-genx/xosgenx/targets/service.xtarget
@@ -61,6 +61,9 @@ # Generated methods def save(self, *args, **kwds): + if not self.leaf_model_name: + self.leaf_model_name = "{{ m.name }}" + try: self.__xos_save_base(*args, **kwds) except AttributeError: