Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I want to continue this discussion.
I also kept getting the same error:
And after expanding the further comments, it is revealed that the test contains:
This feels out of scope, since
DateTimeField
shouldn't be accessed outside a class. I had to put in extra hacks in my solution to get this to work.I'm having troubles with this Kata, I don't have any prior experience with Django or Databases, but the error messages seem to be too vague for me. The message "First name (CharField) is None" doesn't tell me what is being tested, what would/should be correct or what is specifically wrong.
I know that my implementation is wrong, since it doesn't pass the tests, but I can't find why or how, since it already supplies the Fields with their defaults, so they shouldn't be None.
My attempted solution passes all tests except for the last one (Random models), where it either fails or passes validation depending on the validation logic of my EmailField. Unfortunately, the test doesn't give any details on where exactly it fails and I have no clue what I should change. What exactly are the validation requirements for EmailField? For example, do min_length and max_length apply to the entire email string or separately to each of address, subdomain, domain?
Edit: I found the bug in my solution and it had nothing to do with the EmailField but with validation of another field. Still, it's quite hard to debug the solution to this kata, because the user doesn't know what is tested for exaclty. Is that intended?