On Monday 08 May 2017 14:22:27 Melvyn Sopacua wrote:
> On Monday 08 May 2017 03:16:30 miguel vfx wrote:
> > I got it to work but with a different approach by not passing
>
> > arguments:
> This isn't the right fix, something else changed. The error message
> shows that faculty_name.1 was empty. If the fix works, the old code
> should work as well. It's probably the data that changed - but you're
> not showing the for loop and view part that fills faculty_name.
>
> > >> Reverse for 'rrs_class_lists_faculty' with arguments '()' and
> > >> keyword
> > >> arguments '{'faculty_id': ''}' not found.
Just a shot in the dark - if you're rendering choices for a choice field, then
this
would be empty for the "I didn't pick anything" option indicated by
'---------'. To fix it
use forloop.first to not render the url tag, check for emptiness or use the
|default:
template filter.
--
Melvyn Sopacua
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/3670048.PLosRSGOj9%40devstation.
For more options, visit https://groups.google.com/d/optout.