Commit e7b65296 authored by 段英荣's avatar 段英荣

modify

parent 80561432
......@@ -23,6 +23,7 @@ class Hospital(models.Model):
id = models.CharField(max_length=100, primary_key=True, default=uuid4)
name = models.CharField(max_length=100, unique=True, help_text=u"医院名称")
is_online = models.BooleanField(default=False, help_text=u"是否上线", verbose_name=u"上线")
google_loc_lng = models.FloatField(default=0, help_text=u"经度(-180~180)")
google_loc_lat = models.FloatField(default=0, help_text=u"纬度")
......
......@@ -22,7 +22,7 @@ class HospitalTransfer(object):
item_dict = dict()
item_dict["id"] = getMd5Digest(str(instance.name))
item_dict["ori_name"] = instance.name
item_dict["is_online"] = True
item_dict["is_online"] = instance.is_online
item_dict["order_weight"] = QueryWordAttr.get_hospital_query_word_weight(instance.name)
item_dict["results_num"] = QueryWordAttr.get_query_results_num(instance.name)
......
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