How to add a field dynamically to a CustomUser model inheriting from mongoengine.django.auth.User?
===

I am using mongoengine with django. I have a CustomUser model inheriting from mongoengine.django.auth.User that defines some fields. I have a field, which is only needed for some users. I don't want this field in every User objects. As mongoengine.django.auth.User is inherited from mongoengine.Document from which CustomUser model is inherited I can't add fields into it dynamically.So I made my CustomUser model to inherit from both mongoengine.django.auth.User and mongoengine.DynamicDocument

    from mongoengine.django.auth import User
    from mongoengine import DynamicDocument
    
    class CustomUser(User, DynamicDocument):
        # fields

Using this method I am able to dynamically create fields for CustomUser. But I want to know if it is ok to do this. If there are any other better methods available, please suggest.
Thanks.