| Conditions | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 23 | def reverse_func(apps, schema_editor): |
||
| 24 | |||
| 25 | CookieConsentSettings = apps.get_model( |
||
| 26 | "django_simple_cookie_consent", |
||
| 27 | "CookieConsentSettings") |
||
| 28 | |||
| 29 | db_alias = schema_editor.connection.alias |
||
| 30 | |||
| 31 | # restore the old banner privacy link |
||
| 32 | CookieConsentSettings.objects.using(db_alias).update( |
||
| 33 | cookie_policy_link="/image/privacy/") |
||
| 34 | |||
| 45 |