We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
def change_api_updated_at(sender=None, instance=None, *args, **kwargs): cache.set('api_updated_at_timestamp', datetime.datetime.utcnow()) class UpdatedAtKeyBit(KeyBitBase): def get_data(self, **kwargs): key = 'api_updated_at_timestamp' value = cache.get(key, None) if not value: value = datetime.datetime.utcnow() cache.set(key, value=value) return force_text(value) class CustomObjectKeyConstructor(DefaultKeyConstructor): retrieve_sql = RetrieveSqlQueryKeyBit() updated_at = UpdatedAtKeyBit() class CustomListKeyConstructor(DefaultKeyConstructor): list_sql = ListSqlQueryKeyBit() pagination = PaginationKeyBit() updated_at = UpdatedAtKeyBit()
This logic must be directly included in the framework not just as exemple in documentation, It's perfect and ready to be uses.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This logic must be directly included in the framework not just as exemple in documentation, It's perfect and ready to be uses.
The text was updated successfully, but these errors were encountered: