You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
api_yamdb 1.1 (#19)
* Review fixes:
- move v1/ to api/urls from root url
- change user model a bit
- validation error instead of badrequest in validate
* Fix permission AdminModerOrAuthor, add project-level permission
* Update permission name in viewsets.
* Feature/title category genre, project done (#8)
* fix isadminorsuperuser permission, categories tests done
* Fix GenreViewSet: 405 on get category/{slug}/
* Rever user changes, fix permissions on genre and category
* Add rating field in Title viewset.
* Add rating field in Title serializer.
---------
Co-authored-by: bpaverin <bpaverin@gmail.com>
Co-authored-by: Диана Кужамбетова <dkuzhambetova@yandex.ru>
* add null=True on description in Title model
* Add readme
* Change router name, add f to email sender func, ru lang in settings
* My part
* Fix models, serializers and views for review and comment. Create admin-zone.
* Add constants to score field in Review model.
* Add constant to default value in score.
* Did some changes
* Рефакторинг юзеров, токенов и пермишенов, скрипт для загрузки БД (#13)
* Rename custom user model.
* YambdUser changes:
- remove null=True from CharField
- add dynamic max value for role calculation
- change ordering
* Change permissions:
- add is_admin, is_moder properties on YamdbUser model
- add new permission: IsAdminOrSuperUserOrReadOnly
* Serializer, view progress:
- remove 1 excessive serializer,
- improve token creation
* email confirmation now works with default_token_generator.
* change UserSerializerAuth: add validation
change UserViewSetAuth to api_view function, move extra logic from it to serializer
* UserViewSetAdmin actions progress
* UserViewSetAdmin now responsible for users/ users/me and users/username
fix token creation
* Add user model to admin
* Add constants in yamdb model
* Remove admin.py from yambd user
* Add verbose names on yamdbuser
* Add validator for allowed symbols for username
* Add username validation to usermodel
* Improve validate for UserSerializerAuth
* Add db loading script
* Final
* Fix missing constants import in reviews/models
* Fix score field in Review, validation of Title year.
* Fix missing rating in POST response on titles
* Remove rating from POST title serializer
* Fix data loader in db (#17)
* Fix flake8 error
* Replace Custom in naming
---------
Co-authored-by: Борис Паверин <121819746+bpaverin@users.noreply.github.com>
Co-authored-by: Boris Paverin <bpaverin@yandex.ru>
Co-authored-by: Диана Кужамбетова <dkuzhambetova@yandex.ru>
Co-authored-by: Diana K <135751000+diiishka@users.noreply.github.com>
Co-authored-by: bpaverin <bpaverin@gmail.com>