Re: Update permissions on custom permissions migration

2018-03-30 Thread Yo-Yo Ma
FWIF, I wrote a custom data migration to update the Permission model. My OP is attempting to suggest that migrations should handle this automatically. On Friday, March 30, 2018 at 5:43:39 PM UTC-4, Yo-Yo Ma wrote: > > A model with a custom permission: > > class *Spam*(Model): > class

Update permissions on custom permissions migration

2018-03-30 Thread Yo-Yo Ma
A model with a custom permission: class *Spam*(Model): class *Meta*: permissions = (('spam', 'Can eat spam'),) ... $ manage.py makemigrations $ manage.py migrate Now we have a custom permission in the User admin: foods | spam | Can eat spam Then update the

Re: A more useful list of common passwords?

2018-03-30 Thread Curtis Maloney
On 03/30/2018 07:05 PM, Adam Johnson wrote: This new file sounds good to me. Whilst you're at it, what is the new file size? I downloaded the gist, took only column 3 (the actual passwords) and gzipped it, it came to 81K over the existing 3.8K. Uncompressed that's 163K over 7.1K.

Re: A more useful list of common passwords?

2018-03-30 Thread Adam Johnson
This new file sounds good to me. Whilst you're at it, what is the new file size? I downloaded the gist, took only column 3 (the actual passwords) and gzipped it, it came to 81K over the existing 3.8K. Uncompressed that's 163K over 7.1K. It would probably warrant a smarter checking algorithm

Re: A more useful list of common passwords?

2018-03-30 Thread Brenton Cleeland
Heya, Curtis! The gzipped file size of the new file is 82K. That's with all 19,999 passwords from Royce's list. I threw together a quick test that compares the default list to the new larger one by checking 10,000 random passwords. Speed difference is negligible, with both varying between