提交 5a3edcf9 authored 作者: zhang wei's avatar zhang wei

Merge remote-tracking branch 'origin/dev' into dev

# Conflicts: # company/views.py
......@@ -11,7 +11,6 @@
!/manage.py
!/README.md
!/.gitignore
!/.gitlab-ci.yml
### NotepadPP template
# Notepad++ backups #
......
......@@ -497,6 +497,15 @@ class Company_UploadFiles_Form(ModelForm):
self.fields['category'].queryset = FileCategory.objects.all()
class BonusPoints_Form(ModelForm):
class Meta:
model=BonusPoints
fields = ['points','remark']
def __init__(self, *args, **kwargs):
self._user = kwargs.pop('user')
super(BonusPoints_Form, self).__init__(*args, **kwargs)
self.fields['points'].queryset = BonusPoints.objects.filter(company_id=self._user.company.id)
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论