Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set options['expire_seconds'] from model.expire_seconds #564

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bbkgh
Copy link

@bbkgh bbkgh commented Jul 11, 2022

No description provided.

Copy link
Member

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whats problem will this change solve? can you add test to verify this?

@auvipy
Copy link
Member

auvipy commented Oct 13, 2022

@954-Ivory can you verify this patch?

@954-Ivory
Copy link
Contributor

954-Ivory commented Oct 13, 2022

Do not approved this PR.

def expires_(self):
return self.expires or self.expire_seconds

def _clean_expires(self):
if self.expire_seconds is not None and self.expires:
raise ValidationError(
_('Only one can be set, in expires and expire_seconds')
)

expires or expire_seconds only one can be set.

@954-Ivory
Copy link
Contributor

I went to test just now, expire_seconds seems doesn't work in master branch.

Copy link
Member

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need regression test to verify this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants