Ver código fonte

Merge branch 'master' of http://git.zzliaoyuan.com:4000/wushaodong/decorate

lijiangwei 4 anos atrás
pai
commit
c48e12d7f6
2 arquivos alterados com 4 adições e 4 exclusões
  1. 1 1
      apps/customer/models.py
  2. 3 3
      apps/customer/views.py

+ 1 - 1
apps/customer/models.py

@@ -42,7 +42,7 @@ class ReportCustomer(models.Model):
         permissions = [
             ('view_customer', u'查看'),
             ('add_customer', u'添加'),
-            ('update_customer',u'更新'),
+            ('update_customer', u'更新'),
             ('delete_customer', u'删除'),
             ('check_customer', u'审核'),
         ]

+ 3 - 3
apps/customer/views.py

@@ -65,11 +65,11 @@ class ReportCustomerDictView(APIView):
     permission_classes = []
 
     def get(self, request):
-        rows = Option.objects.filter(Q(type=Option.CUSTOMER_SOURCE)|Q(type=Option.CATEGORY), enable=True)
+        rows = Option.objects.filter(Q(type=Option.CUSTOMER_SOURCE) | Q(type=Option.CATEGORY), enable=True)
         serializer = OptionComboboxSerializer(rows, many=True)
         return response_ok({
-            "source": serializer.data,
-            "project": serializer.data,
+            'source': serializer.data,
+            'project': serializer.data,
         })