-
Notifications
You must be signed in to change notification settings - Fork 950
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make num visits include current visit (#148)
- Loading branch information
1 parent
e0780f2
commit 46ccd76
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
catalog/migrations/0027_genre_genre_name_case_insensitive_unique_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 5.0.8 on 2024-08-12 23:52 | ||
|
||
import django.db.models.functions.text | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('catalog', '0026_alter_book_author_alter_genre_name_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddConstraint( | ||
model_name='genre', | ||
constraint=models.UniqueConstraint(django.db.models.functions.text.Lower('name'), name='genre_name_case_insensitive_unique', violation_error_message='Genre already exists (case insensitive match)'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='language', | ||
constraint=models.UniqueConstraint(django.db.models.functions.text.Lower('name'), name='language_name_case_insensitive_unique', violation_error_message='Language already exists (case insensitive match)'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters