Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
172f4ee9
Verified
Commit
172f4ee9
authored
4 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Rename _versions attribute to satsfy template renderer
parent
8720ac73
No related branches found
No related tags found
1 merge request
!385
Resolve "Replace django-easy-audit"
Pipeline
#4611
passed
4 years ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/core/mixins.py
+2
-2
2 additions, 2 deletions
aleksis/core/mixins.py
aleksis/core/templates/core/partials/crud_events.html
+1
-1
1 addition, 1 deletion
aleksis/core/templates/core/partials/crud_events.html
with
3 additions
and
3 deletions
aleksis/core/mixins.py
+
2
−
2
View file @
172f4ee9
...
...
@@ -53,7 +53,7 @@ class ExtensibleModel(models.Model, metaclass=_ExtensibleModelBase):
This base model ensures all objects in AlekSIS apps fulfill the
following properties:
*
_
versions property to retrieve all versions of the model from reversion
*
`
versions
`
property to retrieve all versions of the model from reversion
* Allow injection of fields and code from AlekSIS apps to extend
model functionality.
...
...
@@ -107,7 +107,7 @@ class ExtensibleModel(models.Model, metaclass=_ExtensibleModelBase):
pass
@property
def
_
versions
(
self
)
->
List
[
Tuple
[
str
,
Tuple
[
Any
,
Any
]]]:
def
versions
(
self
)
->
List
[
Tuple
[
str
,
Tuple
[
Any
,
Any
]]]:
"""
Get all versions of this object from django-reversion.
Includes diffs to previous version.
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/templates/core/partials/crud_events.html
+
1
−
1
View file @
172f4ee9
{% load i18n data_helpers %}
<ul
class=
"collection"
>
{% for version in obj.
_
versions %}
{% for version in obj.versions %}
<li
class=
"collection-item"
>
<strong>
{{ version.0.revision.get_comment }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment