Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double pluralization of names #262

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dkratzert
Copy link

@dkratzert dkratzert commented Mar 22, 2023

Fixes #260 Stop double pluralization of names

dkratzert and others added 4 commits March 22, 2023 10:49
* Makes sure that a singular table name with a one-to-many relationship does not end up with a relationship name of 'False' because of self.inflect_engine.singular_noun(preferred_name) returns False with a singular preferred_name in generate_relationship_name().
@coveralls
Copy link

coveralls commented Mar 22, 2023

Coverage Status

Coverage: 97.663% (+0.2%) from 97.425% when pulling d2725f2 on dkratzert:double-pluralization-of-names into f8e3777 on agronholm:master.

@dkratzert dkratzert marked this pull request as ready for review March 22, 2023 12:27
@agronholm
Copy link
Owner

Regarding the first test, simple_item = relationship('SimpleItem', back_populates='container') is not correct because the related foreign key column does not have a unique constraint on it.

@NixBiks
Copy link

NixBiks commented Nov 16, 2023

@dkratzert thanks for this PR. Are you still planning to get this merged?

@dkratzert
Copy link
Author

Sorry for the delay! I hope to have time for it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop double pluralization of names
4 participants