Salman Ahmed
Salman Ahmed

Reputation: 682

Add uuid field in django Existing User model?

I am using Django Rest framework for my application. I almost implemented registration and login process using django User Model without customizing it now i want to add a uuid field in it. Is there any way we can just add uuid field and other process remains same?

Upvotes: 2

Views: 3751

Answers (1)

Paolo Melchiorre
Paolo Melchiorre

Reputation: 6112

Adding UUIDField to existing models is not so easy but you can read an How-To in the official Django documentation in the specific section (I updated it few months ago) :

Migrations that add unique fields.

Upvotes: 6

Related Questions