-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1602 from ResearchHub/author/struct
[Author] 2 yr mean citedness; author institution
- Loading branch information
Showing
35 changed files
with
4,522 additions
and
1,992 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
src/institution/migrations/0005_alter_institution_associated_institutions_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Generated by Django 4.1 on 2024-05-20 19:24 | ||
|
||
import django.contrib.postgres.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("institution", "0004_institution_openalex_created_date_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="institution", | ||
name="associated_institutions", | ||
field=django.contrib.postgres.fields.ArrayField( | ||
base_field=models.CharField(blank=True, max_length=500, null=True), | ||
size=None, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="institution", | ||
name="h_index", | ||
field=models.IntegerField(blank=True, default=0, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="institution", | ||
name="i10_index", | ||
field=models.IntegerField(blank=True, default=0, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="institution", | ||
name="two_year_mean_citedness", | ||
field=models.FloatField(blank=True, default=0, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="institution", | ||
name="works_count", | ||
field=models.IntegerField(blank=True, default=0, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from rest_framework.serializers import SerializerMethodField | ||
|
||
from institution.models import Institution | ||
from researchhub.serializers import DynamicModelFieldSerializer | ||
|
||
|
||
class DynamicInstitutionSerializer(DynamicModelFieldSerializer): | ||
institutions = SerializerMethodField() | ||
|
||
class Meta: | ||
model = Institution | ||
fields = "__all__" |
Oops, something went wrong.