Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
9a1d2d4d
Commit
9a1d2d4d
authored
Jan 08, 2017
by
Dalahro
Committed by
root
Jan 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logs des controles
parent
38e25072
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
cotisations/models.py
cotisations/models.py
+1
-1
logs/templates/logs/aff_actions.html
logs/templates/logs/aff_actions.html
+17
-15
No files found.
cotisations/models.py
View file @
9a1d2d4d
...
...
@@ -28,7 +28,7 @@ class Facture(models.Model):
return
name
def
__str__
(
self
):
return
str
(
self
.
date
)
+
' '
+
str
(
self
.
user
)
return
str
(
self
.
user
)
+
' '
+
str
(
self
.
date
)
@
receiver
(
post_save
,
sender
=
Facture
)
def
facture_post_save
(
sender
,
**
kwargs
):
...
...
logs/templates/logs/aff_actions.html
View file @
9a1d2d4d
...
...
@@ -16,20 +16,22 @@
</tr>
</thead>
{% for revision in revisions_list %}
<tr>
<td>
{% for reversion in revision.version_set.all %}{{ reversion.object|truncatechars:20 }}{% endfor %}
</td>
<td>
{% for reversion in revision.version_set.all %}{{ reversion.object|classname }}{% endfor %}
</td>
<td>
{{ revision.user }}
</td>
<td>
{{ revision.date_created }}
</td>
<td>
{{ revision.comment }}
</td>
{% if is_bureau %}
<td>
<a
class=
"btn btn-danger btn-sm"
role=
"button"
href=
"{% url 'logs:revert-action' revision.id %}"
>
<i
class=
"glyphicon glyphicon-remove"
></i>
Annuler
</a>
</td>
{% endif %}
</tr>
{% for reversion in revision.version_set.all %}
<tr>
<td>
{{ reversion.object|truncatechars:20 }}
</td>
<td>
{{ reversion.object|classname }}
</td>
<td>
{{ revision.user }}
</td>
<td>
{{ revision.date_created }}
</td>
<td>
{{ revision.comment }}
</td>
{% if is_bureau %}
<td>
<a
class=
"btn btn-danger btn-sm"
role=
"button"
href=
"{% url 'logs:revert-action' revision.id %}"
>
<i
class=
"glyphicon glyphicon-remove"
></i>
Annuler
</a>
</td>
{% endif %}
</tr>
{% endfor %}
{% endfor %}
</table>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment