[Answer]-Django – Attach data to model that will not be saved to the database

1👍

Just set the office as a simple attribute:

user = User(username=username, email=email)
user.set_password(password)
user.office = office
user.save()

Leave a comment