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

Missing Oligo.find_by_name #45

Open
shenker opened this issue Feb 8, 2021 · 0 comments
Open

Missing Oligo.find_by_name #45

shenker opened this issue Feb 8, 2021 · 0 comments

Comments

@shenker
Copy link

shenker commented Feb 8, 2021

I'm not clear on why Oligo doesn't inherit from ListMixin. This would allow using Oligo.find_by_name just as you can with DNASequence.

Currently I'm using the following monkey-patch, which seems to work:

if benchlingapi.models.mixins.ListMixin not in benchlingapi.models.Oligo.__bases__:
    benchlingapi.models.Oligo.__bases__ = (
        benchlingapi.models.mixins.ListMixin,
    ) + benchlingapi.models.Oligo.__bases__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant