+ self.writerow(row)
+
+
+def process_app_deps(list_with_deps):
+ return tuple(
+ (x[0] if type(x) == tuple else x)
+ for x in list_with_deps
+ if type(x) != tuple or x[1] in INSTALLED_APPS)
+
+
+def localtime_to_utc(localtime):
+ tz = pytz.timezone(settings.TIME_ZONE)
+ return timezone.utc.normalize(
+ tz.localize(localtime)
+ )