Skip to content

Refactor District.number to an IntegerField #99

Closed
@lalver1

Description

@lalver1

This is so that the field type is consistent with the URL argument type that is passed into the districts:district URL. It also makes for cleaner queries, such as District.objects.get(number__iexact=self.kwargs["district"]) in the DistrictView class, since both types will match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions