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

Hint 6: Adding the field to the admin

  • 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.

If you've opened any of the previous hints you might have noticed that we've been looking at the analysis we did before. So we're doing this once again with the 6th bullet: It should be editable on the admin member edit page.

This bullet says that the field we just created should be shown in the administration panel when editing the profile. Usually this is really easy in Django (it's automatically done once you add an admin for a model), but the profile is a bit different since it uses an inline with the fields specified.

You should be able to find it and add your field using this information. You can find a spoiler here.

Clone this wiki locally