Commit Graph

2 Commits (ebe21b77c6ec7d23e427bc41c6b32f3c0ec5c723)

Author SHA1 Message Date
Cristi Vîjdea acc204e4ea Add test for #382 2019-06-13 16:34:23 +03:00
ko-pp 309a6eb8cd Fix schema generation with OneToOneFields (#81)
* Fix: OneToOneRel, used by OneToOneField doesn't have help_text nor primary_key attributes, thus breaking OpenAPISchemaGenerator; use hasattr() as safe-guard.
* Fix: use getattr() with a default value instead of hasattr() + acessing the value
* Add: 'people' app that breaks drf_yasg without previous commits
* Update tests/references.yaml + run isort and flake8
* Fix: set on_delete for Person.identity as Django-2+ requires it
2018-03-18 19:30:36 +02:00