Jake, Well that gets me part way there.
I wasn't clear that I DO want the hours to display in the business detail in the admin area but only the hours related to this particular business. The hours now show up in my template but again, all the hours show up, not just the records related to this business. On Sep 4, 6:16 pm, jake <[EMAIL PROTECTED]> wrote: > hi jim, > > JimT wrote: > > The way my models are below (abbreviated for clarity) the hours don't > > show up in the business detail of the "Businesses" section in the > > admin application but the hours do show in the "Hours" section of the > > admin application. > > if this isn't the behavior you want, you can use the `edit_inline` > argument in the foreignkey field of the Hours model. > > > I'm also unclear how I'd display them in a template since they'd > > probably be passed to the template as something like a dictionary. > > in your template they'll be accessible like: > > {% for hours in business.hours_set.all %} > {{ hours.day }} {{ hours.open_time }} {{ hours.close_time }} > {% endfor %} > > etc. > > does that help? > > best > jake --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---