Custom (delete) ProtectError message
Prior to Django 3 we've managed to customize the delete message when you have (say) PROTECT set. It seems since Django 3, in deletion.py the collect() method eats our ProtectError exception and uses it's own. Is there a way to override this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1c43fc41-82b7-4e81-af11-34e77e85febfn%40googlegroups.com.
Re: bulk_create() and custom user model
Hey, you can upload the file through a form, and in the backend, you can store the file in temporary memory with the BytesIO method and then read it with CSV library and then loop through row and then use bulk_create On Monday, August 9, 2021 at 7:07:16 AM UTC+5:30 bi...@deltaops.tech wrote: > Hi, I'd like to create a view in a different app that will allow for > someone to upload a csv of users. I already know how to use bulk_create() > and CSVs for other things but I'm not sure how to do this with the custom > auth model. > > Any advice would be greatly appreciated. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9c8b95b2-0710-4e04-8aec-6dc7bd38d77fn%40googlegroups.com.
Role And Permission
Handling Role From Frontend side like:- add role delete role update role then Handling Permissions Assign permission remove permissions from frontend side So finally I want to Customise role and permission any one guide me for this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c9f040b6-5983-4626-b3c2-d05cfad0cc7an%40googlegroups.com.