[Fixed]-How to represent two model fields as one form field in Django?

10👍

It seems it is not possible in django using current widgets API. The ticket is one of the oldest django tickets, it is 7 years old: https://code.djangoproject.com/ticket/27 .

You may exclude original 2 fields from the model form, create a new field and override form’s save method.

Leave a comment