• Members 14 posts
    April 16, 2017, 6:28 p.m.

    Hello there!

    I love this superb forum engine!

    Can I add new registration field?

    What are my actions?

    1. Add new variable to the user model.
    2. Update DB for the user model (makemigrations).
    3. Add new field to misago/users/forms/register.py
    class RegisterForm(forms.Form):
        username = forms.CharField(validators=[validators.validate_username])
        email = forms.CharField(validators=[validators.validate_email])
        password = forms.CharField()
        garden = forms.CharField() <---

    Than I have to add this to registration window (js, html). Is't right?

  • April 17, 2017, 4:43 p.m.

    If you'll do this, you'll effectively need to maintain custom Misago version, because now you'll need to implement your changes every time new Misago is released. This sucks and will make updating annoying, but thats how it currently is.

    The better way would be to fork Misago's frontend and only write custom django app defining custom user model extending Misago's one as well custom /api/users/ API extending Misago's API and custom registration form. But you'll still need to modify Misago's serializers and javascript views to display this data on user profile.

    Humm, on second tought, I'm not sure that even this is better way to go about it.

    The perfect way to do this is to add custom profile fields feature to Misago, which is something I want to get to eventually, but I still have more important things to get done first, so its unlikely we'll see them for some time.