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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---