-
Notifications
You must be signed in to change notification settings - Fork 0
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 #46 from SADiLaR/feature/downloading-logo
added pillow and updated image inputs models
- Loading branch information
Showing
7 changed files
with
58 additions
and
31 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
"abbreviation": "UNISA", | ||
"url": "https://www.unisa.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -18,7 +18,7 @@ | |
"abbreviation": "NWU", | ||
"url": "https://www.nwu.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -29,7 +29,7 @@ | |
"abbreviation": "UP", | ||
"url": "https://www.up.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -40,7 +40,7 @@ | |
"abbreviation": "UJ", | ||
"url": "https://www.uj.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -51,7 +51,7 @@ | |
"abbreviation": "UKZN", | ||
"url": "https://www.ukzn.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -62,7 +62,7 @@ | |
"abbreviation": "UFS", | ||
"url": "https://www.ufs.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -73,7 +73,7 @@ | |
"abbreviation": "CPUT", | ||
"url": "https://www.cput.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -84,7 +84,7 @@ | |
"abbreviation": "WITS", | ||
"url": "https://www.wits.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -95,7 +95,7 @@ | |
"abbreviation": "US", | ||
"url": "http://www.sun.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -106,7 +106,7 @@ | |
"abbreviation": "UCT", | ||
"url": "https://uct.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -117,7 +117,7 @@ | |
"abbreviation": "NMU", | ||
"url": "https://www.mandela.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -128,7 +128,7 @@ | |
"abbreviation": "WSU", | ||
"url": "https://www.wsu.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -139,7 +139,7 @@ | |
"abbreviation": "DUT", | ||
"url": "https://www.dut.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -150,7 +150,7 @@ | |
"abbreviation": "UL", | ||
"url": "https://www.ul.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -161,7 +161,7 @@ | |
"abbreviation": "VUT", | ||
"url": "https://www.vut.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -172,7 +172,7 @@ | |
"abbreviation": "UniZulu", | ||
"url": "https://www.unizulu.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -183,7 +183,7 @@ | |
"abbreviation": "UWC", | ||
"url": "https://www.uwc.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -194,7 +194,7 @@ | |
"abbreviation": "CUT", | ||
"url": "https://www.cut.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -205,7 +205,7 @@ | |
"abbreviation": "UFH", | ||
"url": "https://www.ufh.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -216,7 +216,7 @@ | |
"abbreviation": "RU", | ||
"url": "https://www.ru.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -227,7 +227,7 @@ | |
"abbreviation": "Venda", | ||
"url": "https://www.univen.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -238,7 +238,7 @@ | |
"abbreviation": "MUT", | ||
"url": "https://www.mut.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -249,7 +249,7 @@ | |
"abbreviation": "FMHSU", | ||
"url": "https://www.smu.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -260,7 +260,7 @@ | |
"abbreviation": "UMP", | ||
"url": "https://www.ump.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
}, | ||
{ | ||
|
@@ -271,7 +271,7 @@ | |
"abbreviation": "SPU", | ||
"url": "https://www.spu.ac.za/", | ||
"email": "[email protected]", | ||
"logo": "logo" | ||
"logo": "" | ||
} | ||
} | ||
] |
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
23 changes: 23 additions & 0 deletions
23
app/general/migrations/0005_alter_institution_logo_alter_project_logo.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,23 @@ | ||
# Generated by Django 5.0.2 on 2024-05-10 08:58 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('general', '0004_historicaldocumentfile_historicalinstitution_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='institution', | ||
name='logo', | ||
field=models.ImageField(blank=True, upload_to='institutions/logos/'), | ||
), | ||
migrations.AlterField( | ||
model_name='project', | ||
name='logo', | ||
field=models.ImageField(blank=True, upload_to='projects/logos/'), | ||
), | ||
] |
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 |
---|---|---|
|
@@ -142,7 +142,7 @@ html { | |
} | ||
|
||
.uni-logo { | ||
width: 50px; | ||
width: auto; | ||
height: 50px; | ||
margin: 10px 0 0 0; | ||
} | ||
|
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ django-simple-history | |
gunicorn | ||
psycopg2-binary | ||
whitenoise | ||
pillow |