Skip to content

fix(templates): require valid User relationships for <a> usage

Kevin Morris requested to merge kevr/aurweb:fix-user-link into pu
commit d808049cd719110eedfa4b336eb27e01a656205e (HEAD -> fix-user-link, origin/fix-user-link)
Author: Kevin Morris <kevr@0cost.org>
Date:   Fri Dec 31 01:02:40 2021 -0800

    fix(templates): require valid User relationships for <a> usage

    Previously, when the relationship was None, an <a> would still
    wrap the None value erroneously. This addresses that for all
    three user fields.

    In addition, this commit adds direct testing for the
    `templates/partials/packages/details.html` template.

    Signed-off-by: Kevin Morris <kevr@0cost.org>

commit 64b8aae3b8a55d5dee358e5f1615dfe7877e1ad6
Author: Kevin Morris <kevr@0cost.org>
Date:   Fri Dec 31 15:52:41 2021 -0800

    feat(models.user): add User.__str__ -> User.Username

    Signed-off-by: Kevin Morris <kevr@0cost.org>

commit 93a57e653cbfca7af05c26de67469d35a0a65c88
Author: Kevin Morris <kevr@0cost.org>
Date:   Fri Dec 31 15:10:54 2021 -0800

    feat(testing.requests): add Request.__init__

    This new constructor is a beginning to making Request a bit more easy
    to deal with for standard testing needs. With this commit, users can
    now specify a `user` and `authenticated` state while constructing a
    Request:

        request = Request(user=some_user, authenticated=True)

    By default, the `authenticated` kwarg is set to False and `user` is
    set to `aurweb.testing.requests.User()`.

    Signed-off-by: Kevin Morris <kevr@0cost.org>

Merge request reports