Thanks for your Answer, but, Using Meta class we can only rename the user model table name, but I need to rename "auth_group" table and also some extra column in that
On Saturday, December 17, 2022 at 12:55:48 AM UTC+5:30 shahr...@gmail.com wrote: > class TempUser(models.Model): > first_name = models.CharField(max_length=100) > class Meta: > db_table = "temp_user" # you can write any name here that will > be set in your database table name. but you can call in django app as > TempUser. > > On Wednesday, December 14, 2022 at 4:31:52 PM UTC+6 nvsingh...@gmail.com > wrote: > >> Hello all, >> Is there any way to change all default table name. like auth_group >> table name to something else >> > -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/33a6b4ea-57fd-417f-8b5f-e8c370a4e89fn%40googlegroups.com.