Skip to content

Commit

Permalink
pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Shtanskiy committed Apr 14, 2024
1 parent c37f08f commit 6724ff0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/funtech/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
],
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.LimitOffsetPagination",
"PAGE_SIZE": 3,
"DATE_FORMAT": "%d.%m.%Y",
"TIME_FORMAT": "%H:%M",
}
Expand All @@ -166,4 +167,4 @@
"https://funtech-3.vercel.app",
]

CSRF_TRUSTED_ORIGINS = [os.getenv("CSRF_DOMAIN", "")]
CSRF_TRUSTED_ORIGINS = [os.getenv("CSRF_DOMAIN", "http://localhost")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 5.0.4 on 2024-04-14 08:35

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("users", "0001_initial"),
]

operations = [
migrations.AlterField(
model_name="customuser",
name="username",
field=models.CharField(
blank=True,
max_length=150,
null=True,
verbose_name="Логин из яндекс, свой логин",
),
),
migrations.AlterField(
model_name="customuser",
name="yandex_id",
field=models.PositiveBigIntegerField(
unique=True, verbose_name="Связанный ЯндексID"
),
),
]

0 comments on commit 6724ff0

Please sign in to comment.