A profile photo of Brent Lineberry

Brent Lineberry

Web and app developer. Coffee, beer, and running, in any order.

  • Strava
  • GitHub
  • Mastodon
  • Goodreads
  • iNaturalist
  • Home
  • Posts
  • Notes
  • Photos
  • Links
  • In reply to https://www.brentlineberry.com/notes/3888

    In hindsight, it makes sense. The admin class is how Django knows how to render the form for the model.

    Published by Brent LineberryBrent Lineberry on March 4, 2026, 4:41 p.m.
    Also on:
    • mastodon.online
  • In reply to https://www.brentlineberry.com/notes/3887

    Additionally, using autocomplete seems like a nice touch for that field (which requires an Admin registered for the foreign key model and is how I stumbled across this).

    Published by Brent LineberryBrent Lineberry on March 4, 2026, 4:37 p.m.
    Also on:
    • mastodon.online
  • In reply to https://www.brentlineberry.com/notes/3886

    I thought I was having issues because I was using a through model on a many-to-many relationship, but nope.

    Published by Brent LineberryBrent Lineberry on March 4, 2026, 4:34 p.m.
    Also on:
    • mastodon.online
  • Ok, so in Django if you want to use a TabularInline or StackedInline that contains a foreign key, and want to be able to create new records for that foreign key from the Inline, you have to define and register an admin for that foreign key model.

    Published by Brent LineberryBrent Lineberry on March 4, 2026, 4:32 p.m.
    Tags:
    • Django
    • Web Development
    Also on:
    • mastodon.online
  • Everyday Chicken and Ginger Stock

    Yesterday I made the Everyday Chicken and Ginger Stock recipe from J. Kenji Lopez-Alt’s The Wok cookbook. This was in preparation for the Egg Drop Soup recipe.

    I like his suggestion to use a whole chicken, saving the raw breast meat and the cooked dark meat for other uses.

    Read full article
    Published by Brent LineberryBrent Lineberry on March 2, 2026, 7:09 p.m.
    Tags:
    • Chicken
    • Chicken Stock
    • Cook the Book
    • Cook the Book: The Wok
    • Cooking
    • Food
    • J. Kenji Lopez-Alt
    • Soups
    Also on:
    • mastodon.online
older newer
  • Posts
  • Notes
  • Photos
  • Links
  • Reposts
  • Likes
  • Tags
Copyright © 2026 Brent Lineberry
Previous version: 2011