change #137
@@ -116,10 +116,16 @@ class UpdateMechanicAutoevaluationSerializer(serializers.ModelSerializer):
|
||||
required=False,
|
||||
allow_null=True,
|
||||
)
|
||||
user = serializers.PrimaryKeyRelatedField(
|
||||
queryset=User.objects.all(),
|
||||
required=False,
|
||||
allow_null=True,
|
||||
)
|
||||
|
||||
class Meta:
|
||||
model = MechanicAutoEvaluationModel
|
||||
fields = [
|
||||
"user",
|
||||
"registration_number",
|
||||
"contract_date",
|
||||
"object_inspection_date",
|
||||
|
||||
62
task.txt
62
task.txt
@@ -1,61 +1,11 @@
|
||||
Odatiy avto baholash api'larini kopiyasi kerak. Qo'lda baholash uchun
|
||||
Mexanik avto baholash yaratish'ga "user" field qo'shish kerak
|
||||
|
||||
[SIFAT-91] task bajarilib bo’linganidan so’ng ushbu taskni boshlang
|
||||
API: /api/v1/mechanic-auto-evaluation/
|
||||
|
||||
Qo’lda baholash degani narxlar va hujjatlarni xodimlarni o’zlari aniqlab kiritadi. “Qo’lda baholash”ni odatiy “Avto baholash”dan farqli tomoni:
|
||||
Quyidagilar bo’lsin:
|
||||
|
||||
1. List da ushbu field kelishi kerak. id emas object kelsin
|
||||
|
||||
2. details bo’yicha get qilinganida ham kelsin. id emas object kelsin
|
||||
|
||||
|
||||
|
||||
Hujjatlar Xodimlar tomonidan yuklanadi
|
||||
|
||||
|
||||
|
||||
Narx automatik xisoblanmaydi
|
||||
|
||||
|
||||
|
||||
Mexanik baholash yaratilishida foydalanuvchi tanlanishi kerak
|
||||
|
||||
|
||||
|
||||
Xozircha quyidagilarni copy qilib yasab bersangiz bo’lgani. Qolganini alohida task qilib kiritaman.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/api/v1/auto-evaluation/ => /api/v1/mechanic-auto-evaluation/
|
||||
|
||||
|
||||
|
||||
/api/v1/auto-evaluation/:id/ => /api/v1/mechanic-auto-evaluation/:id/
|
||||
|
||||
|
||||
|
||||
/api/v1/auto-evaluation/appraisers/:id/list/ => /api/v1/mechanic-auto-evaluation/appraisers/:id/list/
|
||||
|
||||
|
||||
|
||||
/api/v1/auto-evaluation/appraisers/:id/remove/ => /api/v1/mechanic-auto-evaluation/appraisers/:id/remove/
|
||||
|
||||
|
||||
|
||||
/api/v1/auto-evaluation/appraisers/:id/set/ => /api/v1/mechanic-auto-evaluation/appraisers/:id/set/
|
||||
|
||||
|
||||
|
||||
/api/v1/auto-evaluation-history/ => /api/v1/mechanic-auto-evaluation-history/
|
||||
|
||||
|
||||
|
||||
/api/v1/auto-evaluation/archive/list/ => /api/v1/mechanic-auto-evaluation/archive/list/
|
||||
|
||||
|
||||
|
||||
/api/v1/auto-evaluation/archive/:id/ => /api/v1/mechanic-auto-evaluation/archive/:id/
|
||||
|
||||
|
||||
|
||||
Endpointlar ko’rsatilganiday bo’lsin
|
||||
3. edit qilishda ham ushbu field ni yanlash imkoni bo’lsin
|
||||
|
||||
Reference in New Issue
Block a user