Questions tagged [reversion]
17 questions
18
votes
3 answers
django AuditTrail vs Reversion
I am working on an new web app I need to store any changes in database to audit table(s). Purpose of such audit tables is that later on in a real physical audit we can asecertain what happened in a situation, who edited what and what was the state…

Anurag Uniyal
- 85,954
- 40
- 175
- 219
7
votes
3 answers
A versioning workflow for multiple similar (but not identical) deployments
I'm currently employed at a small non-tech organisation and have been given the role of coding the organisations' website. While I have enjoyed the task and have learnt much with web dev I've encountered a few issues that I'm hoping someone will be…

rs77
- 8,737
- 2
- 19
- 19
6
votes
4 answers
How to manipulate strings in GO to reverse them?
I'm trying to invert a string in go but I'm having trouble handling the characters. Unlike C, GO treats strings as vectors of bytes, rather than characters, which are called runes here. I tried to do some type conversions to do the assignments, but…

Valney Faria
- 113
- 2
- 10
3
votes
1 answer
django-reversion how to get user-id
I'm using django-reversion for providing history for models
I discovered that reversion creates two tables, the table 'reversion_revision' and the 'reversion_version'
And in the reversion_revision, are stored the user id who makes last changes.…

Daniel Dias
- 55
- 1
- 10
3
votes
2 answers
What is the git command to erase all changes and revert to the state of your last commit?
I made a lot of unhelpful changes, and would like to revert to the state my repo was in before any of the changes.
Is there a git command for doing that?
Thanks!

Trip
- 26,756
- 46
- 158
- 277
2
votes
4 answers
Recursion reverse list without return value
I hit the below issue when I write a recursive function to reverse a list in-place. I could change the input parameter.
def reverse_string(s):
if len(s) <= 1:
return
else:
s[0], s[-1] = s[-1], s[0]
…

Summer Fang
- 21
- 3
2
votes
4 answers
Display user name in reference to user id in django template
I expect this is an easy question. For some reason, I don't have a solution yet.
I have an object set from django reversion: version_list. Each object in the set has a user id attached to it. How do I grab the user names that correspond to the…

Ed.
- 4,439
- 10
- 60
- 78
2
votes
0 answers
integration django-reversion with tastypie
I'would like to store history of my model changes. I found django-reversion extension and it looks quite nice but I have no idea how to intergrate it with tastypie.
My example models:
class Author(models.Model):
name =…

ASmith78
- 153
- 8
1
vote
1 answer
Regression Method Used in statsmodels adfuller()?
What is the method of regression used in adfuller()? I'm performing an augmented dickey fuller test on a time series, and I'm trying two different ways of doing it.
First, I use pandas.diff() to get the change in price dy. Then I'm passing the…

ddm-j
- 403
- 1
- 3
- 18
1
vote
1 answer
Django check if variable contains datetime and format
How do I check if a variable contains a datetime and the format it to just include the date, hour, minutes and seconds. Not milliseconds.
The issue I'm having is that the variable isn't in datetime format as it can either contain text or a date…

JohnTaylor
- 35
- 6
1
vote
2 answers
How to access comments and user from django reversion object
How can I access comments and user from an reversion object?
to create a reversion I use this
with transaction.atomic():
with reversion.create_revision():
reversion.set_user(request.user)
reversion.set_comment("update event")
…

Rooterle
- 373
- 1
- 4
- 12
1
vote
1 answer
vestal_versions and htmldiff question of reversion
I'm guessing there's probably an easier way to do what I'm doing so that the code is less unwieldy.
I had trouble understanding how to use the revert_to method... i wanted something where i could call up two different versions at the same time, but…

holden
- 13,471
- 22
- 98
- 160
0
votes
1 answer
How to code half-life for higher order AP(p) model in python?
I want to calculate the half-life for an higher order AR(4) model. Basically, I want to know the pace of mean reversion of Dutch GDP growth.
I have half-life python code for an AR(1) model
For your information: grw is a dataframe with index=dates…

Nora
- 3
- 1
0
votes
1 answer
django reversion and get__display
i have a model like this:
USER_TYPES=(("pro","Professional"),("beg","Beginner"))
mdl_user(models.Model):
name=models.CharField(max_length=128)
utype=models.CharField(max_length=3,Choices=USER_TYPES)
i want track user changes using…

hosein
- 519
- 5
- 25
0
votes
1 answer
AttributeError: 'module' object has no attribute '_registered_models' django-cms 3.2
I am upgrading Django 1.4 to 1.8. I am getting error like this
"revision_manager._registered_models[model_key] = registration_info
AttributeError: 'module' object has no attribute '_registered_models'"
It's coming from this file…

Naresh Chaudhary
- 705
- 5
- 14