mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-16 16:33:12 +00:00
d7233a0845
Before, I used request.session to store some information about the current jobs to be printed. This was because in the very beginning, I had an issue with disappearing files in my model. I was able to fix this issue in a previous commit, but I still needed the jids. However, because of this storage system, if someone tried to print a file, then oppened a second tab, and tried to print anoter file, he/she would pay twice for the second file .... I decided to add a hidden field to store the job id and deal with it, and it is readonly to avoid changing it.
20 lines
460 B
Python
20 lines
460 B
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.10.7 on 2018-10-21 15:33
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('printer', '0008_auto_20181012_1242'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='jobwithoptions',
|
|
name='paid',
|
|
field=models.BooleanField(default='False'),
|
|
),
|
|
]
|