Merge branch 'master' of git.tobast.fr:tobast/mpri-webdam

This commit is contained in:
Rémi Oudin 2018-02-26 17:04:09 +01:00
commit 7c8ec7351c
1 changed files with 4 additions and 0 deletions

View File

@ -136,6 +136,10 @@ class History(models.Model):
if standalone:
return xml_root
def to_xml_string(self):
xml = self.to_xml()
return ET.tostring(xml)
@staticmethod
def from_xml(xml_root):
''' Loads an history from an XML file '''