Skip to content
New issue

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

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

Already on GitHub? # to your account

Support Model methods with no parameters #96

Open
interDist opened this issue Jun 5, 2018 · 1 comment
Open

Support Model methods with no parameters #96

interDist opened this issue Jun 5, 2018 · 1 comment

Comments

@interDist
Copy link

We have a bunch of methods on our model that we would like to expose in the GeoJSON. Currently we had to add a bunch of properties to the model to provide these values (all of these properties just calling into the bound methods already present on the model...).

It would be nice to have the ability to include callable methods with no parameters (that is, only self). Is this something the project maintainers would like to include? Are there any pitfalls / possible conflicts / discouragements to implement this?

@Gagaro
Copy link
Member

Gagaro commented Jun 6, 2018

Hi,

I don't have time to improve this package, but feel free to implement it and start a PR. I'll gladly review and merge it.

I don't see any possible issue if this is correctly tested.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants