Commit 83eaee49 authored by lixiaofang's avatar lixiaofang

add

parent c8354cb3
......@@ -48,9 +48,12 @@ class AgileTagType(BaseModel):
@property
def get_by_id_name(self):
try:
results = AgileTag.objects.filter(id=self.agile_tag_id).values_list()
return results
logging.info("get self.id:%s" % self.agile_tag_id)
results = AgileTag.objects.filter(id=30).values().first()
if results:
return results
else:
return {}
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return {}
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