Ticket #9910: change_db_table.py

File change_db_table.py, 553 bytes (added by zlw, 16 years ago)

change table names for contrib apps

Line 
1from django.contrib.auth.models import Group, User, Message, Permission
2from django.contrib.sessions.models import Session
3from django.contrib.contenttypes.models import ContentType
4from django.contrib.admin.models import LogEntry
5
6Permission._meta.db_table = 'something_permission'
7Group._meta.db_table = 'something_group'
8User._meta.db_table = 'something_user'
9Message._meta.db_table = 'something_message'
10ContentType._meta.db_table = 'something_contenttype'
11Session._meta.db_table = 'something_session'
12LogEntry._meta.db_table = 'something_admin_log'
Back to Top