Skip to content
Sébastiaan edited this page Nov 23, 2020 · 7 revisions
  1. Hint 1
  2. Hint 2
  3. Hint 3 (you're here)
  4. Hint 4
  5. Hint 5
  6. Hint 6
  7. Hint 7

Hint 3: Naming your field

Once again we go back to the analysis.

  • It's about users.
  • We need to add a field to the profile.
  • It's a field for the shoe size.
  • The field should only accept values from 39 until 47.
  • It can be empty.
  • It should be editable on the admin member edit page.
  • It should be visible on the public user profiles.

This hint is about the third bullet (surprise): It's a field for the shoe size.

In the previous step you should have added an IntegerField to the Profile model. However, if you followed the hint, you haven't given it a name yet. Give the field a sensible attribute name and take a look at the documentation about adding a verbose name.

You can find a spoiler here.

Clone this wiki locally