Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nishaespera_reading
Project
Project
Details
Activity
Releases
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
Julia Anishka
nishaespera_reading
Commits
7a55e49d
Commit
7a55e49d
authored
Mar 27, 2023
by
Julia Anishka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made migrations
parent
a14b4d1f
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
4 additions
and
42 deletions
+4
-42
models.cpython-310.pyc
...pera_reading/bookshelf/__pycache__/models.cpython-310.pyc
+0
-0
0001_initial.py
nishaespera_reading/bookshelf/migrations/0001_initial.py
+3
-3
0002_alter_books_blurb.py
...ra_reading/bookshelf/migrations/0002_alter_books_blurb.py
+0
-19
0003_alter_books_blurb.py
...ra_reading/bookshelf/migrations/0003_alter_books_blurb.py
+0
-19
0001_initial.cpython-310.pyc
...shelf/migrations/__pycache__/0001_initial.cpython-310.pyc
+0
-0
0002_alter_books_blurb.cpython-310.pyc
...ations/__pycache__/0002_alter_books_blurb.cpython-310.pyc
+0
-0
0003_alter_books_blurb.cpython-310.pyc
...ations/__pycache__/0003_alter_books_blurb.cpython-310.pyc
+0
-0
models.py
nishaespera_reading/bookshelf/models.py
+1
-1
No files found.
nishaespera_reading/bookshelf/__pycache__/models.cpython-310.pyc
View file @
7a55e49d
No preview for this file type
nishaespera_reading/bookshelf/migrations/0001_initial.py
View file @
7a55e49d
# Generated by Django 3.2 on 2023-03-27
09:29
# Generated by Django 3.2 on 2023-03-27
13:24
import
bookshelf.models
import
django.core.validators
...
...
@@ -32,8 +32,8 @@ class Migration(migrations.Migration):
(
'title'
,
models
.
CharField
(
max_length
=
70
)),
(
'publisher'
,
models
.
CharField
(
max_length
=
70
)),
(
'year_published'
,
models
.
IntegerField
(
blank
=
True
,
null
=
True
,
validators
=
[
django
.
core
.
validators
.
MinValueValidator
(
1000
),
django
.
core
.
validators
.
MaxValueValidator
(
2023
)])),
(
'ISBN'
,
models
.
CharField
(
max_length
=
13
,
validators
=
[
django
.
core
.
validators
.
MinValueValidator
(
13
),
bookshelf
.
models
.
verify_int
])),
(
'blurb'
,
models
.
CharField
(
max_length
=
200
,
validators
=
[
django
.
core
.
validators
.
MinValueValidator
(
100
)
])),
(
'ISBN'
,
models
.
CharField
(
max_length
=
13
,
validators
=
[
bookshelf
.
models
.
verify_ISBN
])),
(
'blurb'
,
models
.
TextField
(
validators
=
[
bookshelf
.
models
.
verify_wordCount
])),
(
'author'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'bookshelf.author'
)),
],
),
...
...
nishaespera_reading/bookshelf/migrations/0002_alter_books_blurb.py
deleted
100644 → 0
View file @
a14b4d1f
# Generated by Django 3.2 on 2023-03-27 10:08
import
django.core.validators
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'bookshelf'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'books'
,
name
=
'blurb'
,
field
=
models
.
TextField
(
max_length
=
200
,
validators
=
[
django
.
core
.
validators
.
MinValueValidator
(
100
)]),
),
]
nishaespera_reading/bookshelf/migrations/0003_alter_books_blurb.py
deleted
100644 → 0
View file @
a14b4d1f
# Generated by Django 3.2 on 2023-03-27 12:27
import
bookshelf.models
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'bookshelf'
,
'0002_alter_books_blurb'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'books'
,
name
=
'blurb'
,
field
=
models
.
TextField
(
validators
=
[
bookshelf
.
models
.
verify_wordCount
]),
),
]
nishaespera_reading/bookshelf/migrations/__pycache__/0001_initial.cpython-310.pyc
View file @
7a55e49d
No preview for this file type
nishaespera_reading/bookshelf/migrations/__pycache__/0002_alter_books_blurb.cpython-310.pyc
deleted
100644 → 0
View file @
a14b4d1f
File deleted
nishaespera_reading/bookshelf/migrations/__pycache__/0003_alter_books_blurb.cpython-310.pyc
deleted
100644 → 0
View file @
a14b4d1f
File deleted
nishaespera_reading/bookshelf/models.py
View file @
7a55e49d
...
...
@@ -33,7 +33,7 @@ class Books(models.Model):
year_published
=
models
.
IntegerField
(
null
=
True
,
blank
=
True
,
validators
=
[
MinValueValidator
(
1000
),
MaxValueValidator
(
datetime
.
now
()
.
year
)]
)
ISBN
=
models
.
CharField
(
validators
=
[
verify_ISBN
])
ISBN
=
models
.
CharField
(
max_length
=
13
,
validators
=
[
verify_ISBN
])
blurb
=
models
.
TextField
(
validators
=
[
verify_wordCount
])
def
__str__
(
self
):
...
...
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