-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/move-settings-for-events-to-event-…
…settings
- Loading branch information
Showing
74 changed files
with
5,720 additions
and
2,738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../src/onegov/election_day/static/docs/api |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from onegov.core.collection import GenericCollection | ||
from onegov.pas.models import Change | ||
from sqlalchemy import desc | ||
|
||
from typing import TYPE_CHECKING | ||
if TYPE_CHECKING: | ||
from sqlalchemy.orm import Query | ||
|
||
|
||
class ChangeCollection(GenericCollection[Change]): | ||
|
||
@property | ||
def model_class(self) -> type[Change]: | ||
return Change | ||
|
||
def query(self) -> 'Query[Change]': | ||
return super().query().order_by(desc(Change.last_change)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
from onegov.core.collection import GenericCollection | ||
from onegov.pas.models import CommissionMembership | ||
|
||
from typing import TYPE_CHECKING | ||
if TYPE_CHECKING: | ||
from sqlalchemy.orm import Query | ||
|
||
|
||
class CommissionMembershipCollection(GenericCollection[CommissionMembership]): | ||
|
||
@property | ||
def model_class(self) -> type[CommissionMembership]: | ||
return CommissionMembership | ||
|
||
def query(self) -> 'Query[CommissionMembership]': | ||
return super().query() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
from onegov.core.collection import GenericCollection | ||
from onegov.pas.models import ParliamentarianRole | ||
|
||
from typing import TYPE_CHECKING | ||
if TYPE_CHECKING: | ||
from sqlalchemy.orm import Query | ||
|
||
|
||
class ParliamentarianRoleCollection(GenericCollection[ParliamentarianRole]): | ||
|
||
@property | ||
def model_class(self) -> type[ParliamentarianRole]: | ||
return ParliamentarianRole | ||
|
||
def query(self) -> 'Query[ParliamentarianRole]': | ||
return super().query() |
Oops, something went wrong.