|
|
@ -1,6 +1,6 @@ |
|
|
|
import datetime |
|
|
|
|
|
|
|
from django.utils.encoding import force_text |
|
|
|
from django.utils.encoding import force_str |
|
|
|
|
|
|
|
from aesop.ovvpfile import OvvpFile |
|
|
|
|
|
|
@ -9,7 +9,7 @@ def default_ovvpfile(event, rocnik): |
|
|
|
of = OvvpFile() |
|
|
|
of.headers['version'] = '1' |
|
|
|
of.headers['event'] = event |
|
|
|
of.headers['year'] = force_text(rocnik.prvni_rok) |
|
|
|
of.headers['year'] = force_str(rocnik.prvni_rok) |
|
|
|
of.headers['date'] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") |
|
|
|
of.headers['id-scope'] = 'mam' |
|
|
|
of.headers['id-generation'] = '1' |
|
|
|