67 92
     field_id = ShortUUIDField(_('field_id'), max_length=32, blank=True, null=True, help_text='字段唯一标识', db_index=True, unique=True)
@@ -76,6 +101,8 @@ class CourseRegisterFieldInfo(BaseModelMixin):
76 101
     # }
77 102
     fields = JSONField(_('fields'), default=[], blank=True, null=True, help_text='字段列表')
78 103
 
104
+    limit_scene_qrcode_url = models.CharField(_('limit_scene_qrcode_url'), max_length=255, blank=True, null=True, help_text='字段二维码')
105
+
79 106
     class Meta:
80 107
         verbose_name = _('课程报名字段信息')
81 108
         verbose_name_plural = _('课程报名字段信息')
@@ -83,6 +110,15 @@ class CourseRegisterFieldInfo(BaseModelMixin):
83 110
     def __unicode__(self):
84 111
         return '%d' % self.pk
85 112
 
113
+    @property
114
+    def data(self):
115
+        return {
116
+            'field_id': self.field_id,
117
+            'course_id': self.course_id,
118
+            'course_name': self.course_name,
119
+            'fields': self.fields,
120
+        }
121
+
86 122
 
87 123
 class CourseRegisterInfo(BaseModelMixin):
88 124
     field_id = models.CharField(_('field_id'), max_length=32, blank=True, null=True, help_text='字段唯一标识', db_index=True)

+ 1 - 0
registration/tests.py

@@ -1,3 +1,4 @@
1 1
 from django.test import TestCase
2 2
 
3
+
3 4
 # Create your tests here.

+ 1 - 0
registration/views.py

@@ -1,3 +1,4 @@
1 1
 from django.shortcuts import render
2 2
 
3
+
3 4
 # Create your views here.

+ 1 - 0
requirements_dj.txt

@@ -10,6 +10,7 @@ django-redis-connector==1.0.3
10 10
 django-response==1.1.1
11 11
 django-rlog==1.0.7
12 12
 django-short-url==1.1.4
13
+django-shortuuidfield==0.1.3
13 14
 django-six==1.0.4
14 15
 django-uniapi==1.0.10
15 16
 django-we==1.5.5

kodosale - Gogs: Go Git Service

Geen omschrijving

FFIB: 194fbcf74d add simditor 6 jaren geleden
..
simditor 194fbcf74d add simditor 6 jaren geleden
Kodo/kodo - Gogs: Go Git Service

1 Commity (fc07c981469e2fcac2452a0a49c2fb53f9c27d37)

Autor SHA1 Wiadomość Data
  Brightcells c72d89f6e5 add api comment_submit_api/comment_list_api/thumbup_submit_api/thumbup_list_api/thumbup_cancel_api 10 lat temu