Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
library-app-django
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ilham Maulana
library-app-django
Commits
91591bbd
Commit
91591bbd
authored
Jul 17, 2024
by
Ilham Maulana
💻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: custom validators for loans
parent
987546e3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
0 deletions
+56
-0
0005_alter_bookloan_loan_date.py
loans/migrations/0005_alter_bookloan_loan_date.py
+18
-0
0006_alter_bookloan_due_date.py
loans/migrations/0006_alter_bookloan_due_date.py
+19
-0
0007_alter_bookloan_loan_date.py
loans/migrations/0007_alter_bookloan_loan_date.py
+19
-0
No files found.
loans/migrations/0005_alter_bookloan_loan_date.py
0 → 100644
View file @
91591bbd
# Generated by Django 5.0.7 on 2024-07-17 03:42
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'loans'
,
'0004_alter_bookloan_book_alter_bookloan_member'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'bookloan'
,
name
=
'loan_date'
,
field
=
models
.
DateTimeField
(
auto_now_add
=
True
),
),
]
loans/migrations/0006_alter_bookloan_due_date.py
0 → 100644
View file @
91591bbd
# Generated by Django 5.0.7 on 2024-07-17 03:48
import
loans.validators
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'loans'
,
'0005_alter_bookloan_loan_date'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'bookloan'
,
name
=
'due_date'
,
field
=
models
.
DateTimeField
(
validators
=
[
loans
.
validators
.
validate_due_date
]),
),
]
loans/migrations/0007_alter_bookloan_loan_date.py
0 → 100644
View file @
91591bbd
# Generated by Django 5.0.7 on 2024-07-17 04:05
import
loans.validators
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'loans'
,
'0006_alter_bookloan_due_date'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'bookloan'
,
name
=
'loan_date'
,
field
=
models
.
DateTimeField
(
validators
=
[
loans
.
validators
.
validate_loan_date
]),
),
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment