Tesorio / django-anon

:shipit: Anonymize production data so it can be safely used in not-so-safe environments
https://django-anon.readthedocs.io/en/latest/
MIT License
161 stars 6 forks source link

New version to PyPi #51

Closed tillgschwend closed 4 years ago

tillgschwend commented 4 years ago

Hello and thank you for your work

I ran into an issue where due to the method below on the BaseAnonymizer of the current pipy version.

    def _get_class_attributes(self):
        """ Return list of class attributes, which also includes methods and
            subclasses, ignoring any magic methods and reserved attributes
        """
        reserved_names = ["Meta", "clean",]

        return {
            name: self.__class__.__dict__[name]
            for name, value in self.__class__.__dict__.items()
            if not name.startswith("__") and name not in reserved_names
        }

The current master supplies a fix for it but its not the version that is on pypi. Would you mind shipping a new version that includes the updated version of the _get_class_attributes method?

Kind regards Till

caioariede commented 4 years ago

A new version has been released to PyPI: https://pypi.org/project/django-anon/0.2/