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
No comments:
Post a Comment