| Conditions | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 8 | def forwards_func(apps, schema_editor): |
||
| 9 | # We get the model from the versioned app registry; |
||
| 10 | # if we directly import it, it'll be the wrong version |
||
| 11 | |||
| 12 | CookieConsentSettings = apps.get_model( |
||
| 13 | "django_simple_cookie_consent", |
||
| 14 | "CookieConsentSettings") |
||
| 15 | |||
| 16 | db_alias = schema_editor.connection.alias |
||
| 17 | |||
| 18 | # update the banner privacy link |
||
| 19 | CookieConsentSettings.objects.using(db_alias).update( |
||
| 20 | cookie_policy_link="/privacy/") |
||
| 21 | |||
| 45 |