WIP: Resolve "Include django-letsagree" #1869

Closed
tteichler wants to merge 11 commits from 157-include-django-letsagree into master
Owner

Closes #157

Closes #157
Author
Owner

changed milestone to %"2.0a2"

changed milestone to %"2.0a2"
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>586ebb0b - Install django-letsagree</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/224/diffs?diff_id=1766&start_sha=cb52402954b39dc603b0b0429322a1f4b78f22f2)
Author
Owner

added 25 commits

  • 586ebb0b...b4a22ee7 - 24 commits from branch master
  • a73c25f0 - Merge branch 'master' into 157-include-django-letsagree

Compare with previous version

added 25 commits <ul><li>586ebb0b...b4a22ee7 - 24 commits from branch <code>master</code></li><li>a73c25f0 - Merge branch &#39;master&#39; into 157-include-django-letsagree</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/224/diffs?diff_id=1767&start_sha=586ebb0ba234e2f6da303802a2ae99c74b329791)
Author
Owner

added 4 commits

  • a73c25f0...a7665dd6 - 2 commits from branch master
  • 221d6bb2 - Merge branch 'master' into 157-include-django-letsagree
  • 4ec7846d - Add initial migration

Compare with previous version

added 4 commits <ul><li>a73c25f0...a7665dd6 - 2 commits from branch <code>master</code></li><li>221d6bb2 - Merge branch &#39;master&#39; into 157-include-django-letsagree</li><li>4ec7846d - Add initial migration</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/224/diffs?diff_id=1768&start_sha=a73c25f0976eac75bbb8df61383ca8712adf2e84)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>83615785 - Add custom template</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/224/diffs?diff_id=1769&start_sha=4ec7846d038f8615a897ee80da07e2222ac950c3)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>189a339f - Enable caching</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/224/diffs?diff_id=1770&start_sha=83615785214dbb253e0a304077ceacefbab7c789)
Author
Owner

added 85 commits

  • 189a339f...c2439d02 - 84 commits from branch master
  • bb0ddd48 - Merge branch 'master' into 157-include-django-letsagree

Compare with previous version

added 85 commits <ul><li>189a339f...c2439d02 - 84 commits from branch <code>master</code></li><li>bb0ddd48 - Merge branch &#39;master&#39; into 157-include-django-letsagree</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/224/diffs?diff_id=1844&start_sha=189a339ff263652c8a358fc4311d989f508c3e79)
Author
Owner

Maybe we can add blank=True also here like at title_en, so the customer can choose which language he would like to use.

/cc @hansegucker

(Also this must be regenerated if we add a new language…)

Maybe we can add `blank=True` also here like at `title_en`, so the customer can choose which language he would like to use. /cc @hansegucker (Also this must be regenerated if we add a new language…)
Owner

How this migration is generated?

How this migration is generated?
Author
Owner

with ./manage.py makemigrations letsagree

with `./manage.py makemigrations letsagree`
Owner

OK. I would try to set it to blank.

OK. I would try to set it to blank.
Author
Owner

I can do that too, if you have to do other stuff, k ;)?

I can do that too, if you have to do other stuff, k ;)?
Owner

"would", not "will".

"would", not "will".
Author
Owner

ah, oh :D…

ah, oh :D…
Owner

assigned to @hansegucker

assigned to @hansegucker
Author
Owner

changed this line in version 7 of the diff

changed this line in [version 7 of the diff](/AlekSIS/official/AlekSIS/-/merge_requests/224/diffs?diff_id=1867&start_sha=bb0ddd48fd3ee4f6fb922115a3fd3a50fa342a96#3c178dc52c6923c10be29bb676482d41e342e26a_23_23)
Author
Owner

added 19 commits

  • bb0ddd48...7d9a57fc - 17 commits from branch master
  • 9282eb86 - Merge branch 'master' into 157-include-django-letsagree
  • e9f9895a - Update migration

Compare with previous version

added 19 commits <ul><li>bb0ddd48...7d9a57fc - 17 commits from branch <code>master</code></li><li>9282eb86 - Merge branch &#39;master&#39; into 157-include-django-letsagree</li><li>e9f9895a - Update migration</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/224/diffs?diff_id=1867&start_sha=bb0ddd48fd3ee4f6fb922115a3fd3a50fa342a96)
Author
Owner

Result: Apparently it IS possible to create a letsagree migration without required fields, but for some reasons django ignores this and these fields are (also in a new database) still required…

Result: Apparently it IS possible to create a letsagree migration without required fields, but for some reasons django ignores this and these fields are (also in a new database) still required…
Owner

Mhmm

Mhmm
Owner

The main issue here is that the language cannot be switched before accepting terms.

What did your evaluaton of alternative solutions turn up, @debdolph?

The main issue here is that the language cannot be switched before accepting terms. What did your evaluaton of alternative solutions turn up, @debdolph?
Author
Owner

Everything similar to django-letsagree is either old or has the same problems…

Everything similar to django-letsagree is either old or has the same problems…
Owner

removed milestone

removed milestone
Author
Owner

added 473 commits

  • e9f9895a...d6a0b2bd - 471 commits from branch master
  • 696c5c6f - Merge branch 'master' into 157-include-django-letsagree
  • db1b8da5 - Add migrations

Compare with previous version

added 473 commits <ul><li>e9f9895a...d6a0b2bd - 471 commits from branch <code>master</code></li><li>696c5c6f - Merge branch &#39;master&#39; into 157-include-django-letsagree</li><li>db1b8da5 - Add migrations</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/224/diffs?diff_id=2725&start_sha=e9f9895aabb642788f7106577b3a8f33636a3032)
Owner

I think this MR will not deliver any suitable solution. An implementation needs to be re-drafted from scratch.

I think this MR will not deliver any suitable solution. An implementation needs to be re-drafted from scratch.
nik closed this pull request 2022-08-15 12:02:19 +02:00
Owner

unassigned @hansegucker

unassigned @hansegucker

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core!1869
No description provided.