Lun 1563

Make sure the length of the auto-generated site permissions do not exceed the maximum length of the DB field.
Instead of iterating through all the fields you can use Group._meta.get_field_by_name('name')[0] to get the field you want.