In from prerep import models In rs models PrettyReport objects all In

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
In [1]: from prerep import models
In [2]: rs = models.PrettyReport.objects.all()
In [3]: rs[0].payloads.all()
Out[3]: [<ReportPayload: 1274453495 txt>]
In [4]: rs[0].payloads.create(format='rtf', content='foo')
b64->get_db_prep_value
Out[4]: <ReportPayload: -740391237 rtf>
In [5]: _.save()
b64->get_db_prep_value
In [6]: _
Out[6]: <ReportPayload: -740391237 rtf>
In [7]: _.content
Out[7]: 'foo'