Commit bce9bd5d authored by lixiaofang's avatar lixiaofang

ad

parent bbb40778
...@@ -48,7 +48,8 @@ class AgileTagType(BaseModel): ...@@ -48,7 +48,8 @@ class AgileTagType(BaseModel):
@property @property
def get_by_id_name(self): def get_by_id_name(self):
try: try:
results = AgileTag.objects.filter(id=self.agile_tag_id).values_list("name",flat=True).first() results = AgileTag.objects.filter(id=self.agile_tag_id).values_list()
return results return results
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment