hacking
This commit is contained in:
parent
c62c1b2c1b
commit
5b4e779145
2 changed files with 16 additions and 2 deletions
15
flake.nix
15
flake.nix
|
|
@ -38,6 +38,21 @@
|
||||||
cores = 4;
|
cores = 4;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
overlays = [
|
||||||
|
(self: super: {
|
||||||
|
froide-govplan = nixpkgs-master.froide-govplan.overridePythonAttrs (oldAttrs: {
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "onny";
|
||||||
|
repo = "froide-govplan";
|
||||||
|
rev = "b0bc48da19c40ac7288da088638a0c699075c556";
|
||||||
|
hash = "sha256-wvI6HdDZnp45cRVXxiiWWyGZMd1rCT7r3NQk1Fa/oS4=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
services.froide-govplan = {
|
services.froide-govplan = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
|
|
@ -80,8 +80,7 @@ class GovPlanDetailView(GovernmentMixin, DetailView):
|
||||||
"-timestamp"
|
"-timestamp"
|
||||||
)
|
)
|
||||||
context["section"] = self.object.get_section()
|
context["section"] = self.object.get_section()
|
||||||
if self.request.user.is_authenticated:
|
context["update_proposal_form"] = GovernmentPlanUpdateProposalForm()
|
||||||
context["update_proposal_form"] = GovernmentPlanUpdateProposalForm()
|
|
||||||
# For CMS toolbar
|
# For CMS toolbar
|
||||||
self.request.govplan = self.object
|
self.request.govplan = self.object
|
||||||
return context
|
return context
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue