Refactored 'get_random_string_of_length' function
Shortened line length
Cleaned code - line too long
Changed to Class-based View and ModelForm.
Minor formatting changes.