-
Notifications
You must be signed in to change notification settings - Fork 11
1743 Usunięcie efektów kształcenia #1780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master-dev
Are you sure you want to change the base?
Changes from all commits
7184865
9caab7d
76055ae
401c339
4b60835
6cc1493
4230238
6f8af70
b7c0d95
598d123
f83bed7
4bee6cc
71bcb61
f5c9cbf
a630582
d212d2b
04d51ea
4c0de0e
4c936b3
cc726f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # Generated by Django 3.1.14 on 2025-01-05 14:57 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('courses', '0036_auto_20211022_1641'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.RemoveField( | ||
| model_name='courseinformation', | ||
| name='effects', | ||
| ), | ||
| migrations.DeleteModel( | ||
| name='Effects', | ||
| ), | ||
| migrations.CreateModel( | ||
| name='SpecialistTag', | ||
| fields=[ | ||
| ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
| ('short_name', models.CharField(max_length=50, verbose_name='nazwa skrócona')), | ||
| ('full_name', models.CharField(max_length=250, verbose_name='nazwa pełna')), | ||
| ('description', models.TextField(verbose_name='opis')), | ||
| ], | ||
| options={ | ||
| 'verbose_name': 'Tag specjalistyczny (I st.)', | ||
| 'verbose_name_plural': 'Tagi specjalistyczne (I st.)', | ||
| }, | ||
| ), | ||
| migrations.RenameModel( | ||
| old_name='Tag', | ||
| new_name='ThematicTag', | ||
| ), | ||
| migrations.AlterModelOptions( | ||
| name='thematictag', | ||
| options={'verbose_name': 'Tag specjalistyczny (II st.)', 'verbose_name_plural': 'Tagi specjalistyczne (II st.)'}, | ||
| ), | ||
|
Comment on lines
+37
to
+40
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To chyba odnosi się do zmiany opcji starego modelu |
||
| migrations.AddField( | ||
| model_name='courseinformation', | ||
| name='specialist_tags', | ||
| field=models.ManyToManyField(blank=True, to='courses.SpecialistTag', verbose_name='Tagi specjalistyczne (II st.)'), | ||
| ), | ||
| migrations.RenameField( | ||
| model_name='courseinformation', | ||
| old_name='tags', | ||
| new_name='thematic_tags', | ||
| ), | ||
| ] | ||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,35 @@ | ||||||||||||||||||||||||||||||||||||||
| from django.db import models | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| class BaseTag(models.Model): | ||||||||||||||||||||||||||||||||||||||
| short_name = models.CharField(max_length=50, verbose_name='nazwa skrócona') | ||||||||||||||||||||||||||||||||||||||
| full_name = models.CharField(max_length=250, verbose_name='nazwa pełna') | ||||||||||||||||||||||||||||||||||||||
| description = models.TextField(verbose_name='opis') | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| class Meta: | ||||||||||||||||||||||||||||||||||||||
| abstract = True | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| def __str__(self): | ||||||||||||||||||||||||||||||||||||||
| return f"{self.short_name} ({self.full_name})" | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| def serialize_for_json(self): | ||||||||||||||||||||||||||||||||||||||
| return { | ||||||||||||||||||||||||||||||||||||||
| 'id': self.pk, | ||||||||||||||||||||||||||||||||||||||
| 'short_name': self.short_name, | ||||||||||||||||||||||||||||||||||||||
| 'full_name': self.full_name, | ||||||||||||||||||||||||||||||||||||||
| 'description': self.description, | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| class ThematicTag(BaseTag): | ||||||||||||||||||||||||||||||||||||||
| class Meta: | ||||||||||||||||||||||||||||||||||||||
| verbose_name = 'Tag tematyczny (I st.)' | ||||||||||||||||||||||||||||||||||||||
| verbose_name_plural = 'Tagi tematyczne (I st.)' | ||||||||||||||||||||||||||||||||||||||
| app_label = 'courses' | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| class SpecialistTag(BaseTag): | ||||||||||||||||||||||||||||||||||||||
| class Meta: | ||||||||||||||||||||||||||||||||||||||
| verbose_name = 'Tag specjalistyczny (II st.)' | ||||||||||||||||||||||||||||||||||||||
| verbose_name_plural = 'Tagi specjalistyczne (II st.)' | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+26
to
+34
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To może rewolucyjne, ale przy okazji sprawmy, żeby w systemie posługiwać się językiem polskim (i jednocześnie stosować nomenklaturę pojawiającą się w programie studiów) – plus oczywiście analogiczne zmiany w innych plikach.
Suggested change
(Podwójne cudzysłowy stosujemy dla napisów przeznaczonych "dla ludzkich oczu", a pojedyncze – dla tych przetwarzanych wewnętrznie w kodzie.) |
||||||||||||||||||||||||||||||||||||||
| app_label = 'courses' | ||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.