feat: 取消attendance联合约束
This commit is contained in:
parent
19527f9736
commit
635e9df408
|
@ -0,0 +1,17 @@
|
|||
# Generated by Django 3.2.12 on 2024-01-31 03:24
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hrm', '0017_auto_20231120_1828'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterUniqueTogether(
|
||||
name='attendance',
|
||||
unique_together=set(),
|
||||
),
|
||||
]
|
|
@ -111,8 +111,8 @@ class Attendance(CommonADModel):
|
|||
choices=ATT_STATE_CHOICES, default='pending', help_text=str(ATT_STATE_CHOICES))
|
||||
note = models.TextField('备注信息', default='', blank=True)
|
||||
|
||||
class Meta:
|
||||
unique_together = ('user', 'work_date', 'shift')
|
||||
# class Meta:
|
||||
# unique_together = ('user', 'work_date', 'shift')
|
||||
|
||||
|
||||
class ClockRecord(BaseModel):
|
||||
|
|
Loading…
Reference in New Issue