[damned-lies] Simplified Information object creation
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Simplified Information object creation
- Date: Fri, 30 Oct 2015 16:54:46 +0000 (UTC)
commit ca5f3049cdc509a802dbe1b2d76527cf81e2aef1
Author: Claude Paroz <claude 2xlibre net>
Date: Fri Oct 30 17:51:22 2015 +0100
Simplified Information object creation
stats/models.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index 7805e34..83bdc96 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -1569,7 +1569,7 @@ class Statistics(models.Model):
logging.debug("%s:\n%s" % (self.language, str(stats)))
def set_error(self, tp, description):
- self.information_set.add(Information(type=tp, description=description))
+ Information.objects.create(statistics=self, type=tp, description=description)
def informations(self):
""" Returns information_set, optionally augmented by domain information """
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]