-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add admin.py; add serializer overrides + chat_settings #4
Conversation
chit_chat/migrations/0001_initial.py
Outdated
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='chat_room_memberships', to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
migrations.AddField( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only concern here is compatibility with applications already running chit-chat. Not massively important though.
What could make sense is:
- Create new m2m ,
members_tmp
, with though model. - Create data migration to load new field with old field's data.
- Delete old m2m field.
- Rename new m2m
members_tmp
=>members
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pushed this up, hand tested a couple times, should worky!
chit_chat/ckc_conf.py
Outdated
# Override default serializers.. | ||
if hasattr(settings, 'CKC_CHAT_SERIALIZERS'): | ||
for name, module in settings.CKC_CHAT_SERIALIZERS.items(): | ||
chat_settings['SERIALIZERS'][name] = module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm making sure this guy is covered in a test right now.
… signal. Add MESSAGE serializer to default settings.
… serializer from django settings with new style. Update test for new serializer config style.
…go-chit-chat into better-serializer-overrides
No description provided.