Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
238 commits
Select commit Hold shift + click to select a range
fd53b1e
(ac-4): week 4: fixed HOD leave module and some bugs in the student l…
Lawful2002 Mar 4, 2023
d869bf2
Merge branch 'main' into ac-4
akshatnema Mar 15, 2023
e790ca5
Merge branch 'main' into ac-4
akshatnema Mar 15, 2023
0706857
Merge branch 'main' into ac-4
akshatnema Mar 18, 2023
9542057
Merge branch 'main' into ac-4
akshatnema Mar 19, 2023
79c162d
Merge branch 'main' into ac-4
akshatnema Mar 23, 2023
7effb97
Merge branch 'main' into ac-4
akshatnema Mar 26, 2023
e0425df
I added my module otheracademic from scratch all functionality is imp…
xenouno Mar 3, 2024
b8c6c38
I added my module otheracademic from scratch all functionality is imp…
xenouno Mar 3, 2024
0eb1310
I added my module otheracademic from scratch all functionality is imp…
xenouno Mar 3, 2024
18de59c
added new usecases
SharanKumar06 Mar 10, 2024
b51d16c
Merge remote-tracking branch 'upstream/main' into rspc-2025-gad7
SharanKumar06 Mar 10, 2024
b99cb2a
removed migrations files
xenouno Mar 12, 2024
7e2196d
Merge branch 'FusionIIIT:main' into otheracademic-2024
xenouno Mar 12, 2024
dd35ab6
Otheracademic 2024 (#1316)
xenouno Mar 12, 2024
7d1612a
bug fixes
xenouno Mar 16, 2024
6b77879
Merge branch 'otheracademic-2024' of github.com:xenouno/Fusion into o…
xenouno Mar 16, 2024
bafc380
Merge branch 'FusionIIIT:main' into otheracademic-2024
xenouno Mar 16, 2024
4eed9df
Merge branch 'ac-4' into otheracademic-2024
xenouno Mar 16, 2024
eec488d
otheracademic update
xenouno Mar 16, 2024
28cc9ca
Merge branch 'gad-5' into otheracademic-2024
xenouno Mar 19, 2024
bb32b02
Merge branch 'otheracademic-2024' of github.com:xenouno/Fusion into o…
xenouno Mar 19, 2024
b83cf20
Updated Dashboard
xenouno Mar 19, 2024
fdf14ca
Merge branch 'otheracademic-2024' of github.com:xenouno/Fusion into o…
xenouno Mar 19, 2024
734c08e
implemented leave,assistantship,nodues
xenouno Apr 12, 2024
85d2ed3
Merge branch 'ac-4' into otheracademic-2024
xenouno Apr 12, 2024
7b42e45
bug fixes
xenouno Apr 12, 2024
868125a
Merge branch 'otheracademic-2024' of github.com:xenouno/Fusion into o…
xenouno Apr 12, 2024
a2afb18
bug fixes assistantship
xenouno Apr 13, 2024
4fe1215
bug fixes no dues
xenouno Apr 13, 2024
c0cae8b
I add description to all functions,also removed unnecessary comment,a…
xenouno Apr 15, 2024
5bf2878
modifications in notifications
xenouno Apr 15, 2024
785a3cf
small error fixed
xenouno Apr 15, 2024
4677500
Merge pull request #1444 from xenouno/otheracademic-2024
Priyansh61 Apr 16, 2024
7c2c768
various bug fixes
xenouno Apr 18, 2024
08bf645
fix formatting and remove debugging statements for existing views
theoden42 Apr 18, 2024
ead639d
fix formatting and remove some unnecessary functions
theoden42 Apr 18, 2024
cc0ba4c
update: all fts specific views require the user to not be student and…
theoden42 Apr 18, 2024
9731fb5
remove unused urls
theoden42 Apr 18, 2024
b74bb52
add notifications on forward
theoden42 Apr 18, 2024
aa7bffb
fix: send notifications from drafts as well
theoden42 Apr 18, 2024
f6d9b40
fix: redirect on sending draft
theoden42 Apr 18, 2024
c1f1e73
fix remarks to show blank in drafts
Aragorn-64 Apr 18, 2024
cb85f8d
fix and cleanup templates
Aragorn-64 Apr 18, 2024
fa3d222
save attachments to drafts and allow .zip attachments
theoden42 Apr 18, 2024
a2f2a8d
fix formatting and UI changes in compose file template
theoden42 Apr 18, 2024
caa100f
Delete FusionIIIT/applications/otheracademic/migrations/0002_auto_202…
prabhatsuman Apr 21, 2024
eec13f3
Delete FusionIIIT/applications/otheracademic/migrations/0003_auto_202…
prabhatsuman Apr 21, 2024
758d4d0
updated apis for ac-2 module
Bhavik-ag Apr 21, 2024
1735c45
removed migration files
xenouno Apr 22, 2024
70fae4e
Merge pull request #1494 from xenouno/otheracademic-2024
ChaudharyRaman Apr 22, 2024
fc90e77
feat: confirm before unloading page and make the fields not required
theoden42 Apr 22, 2024
a79424c
app changes
21BCS035 Apr 22, 2024
97f9d6e
add active tab highlight to sidebar
Aragorn-64 Apr 22, 2024
73fb5f0
fix extra html
Aragorn-64 Apr 22, 2024
0d3bbf5
Merge branch 'mohit_fusion_1' of https://github.com/ThisisMS11/Fusion…
ThisisMS11 Apr 19, 2024
a9cce44
Merge branch 'temp' into mohit_fusion_1
ThisisMS11 Apr 22, 2024
01651ef
add File download as zip feature
Aragorn-64 Apr 23, 2024
e026046
authorization
21BCS035 Apr 23, 2024
e6ad7ed
Merge remote-tracking branch 'dev/gad-4-final' into gad-4-final
theoden42 Apr 23, 2024
246218f
fix: small formatting errors
theoden42 Apr 23, 2024
ed56e07
added migration files
xenouno Apr 23, 2024
b127169
fix: inbox, drafts and archives are now ordered by time of creating a…
theoden42 Apr 23, 2024
1039d8b
Merge pull request #1542 from xenouno/otheracademic-2024
ChaudharyRaman Apr 23, 2024
f8cb495
Merge branch 'latest_staging' of github.com:prabhatsuman/Fusion into …
prabhatsuman Apr 23, 2024
510a5e0
fix: forward file to error correctly and improve template
theoden42 Apr 23, 2024
f95d509
fix: on draft saving without destination redirect is correctly placed
theoden42 Apr 23, 2024
fc86e2a
fix: attachments added on sending from drafts
theoden42 Apr 23, 2024
545a935
Merge pull request #1543 from prabhatsuman/ac-4
prabhatsuman Apr 23, 2024
b3f0ccf
Merge branch 'latest_staging' of github.com:prabhatsuman/Fusion into …
prabhatsuman Apr 23, 2024
d6b6040
Merge pull request #1550 from prabhatsuman/ac-4
prabhatsuman Apr 23, 2024
70212ae
changed files permissions
prabhatsuman Apr 23, 2024
b7d602e
Changed file persmissions
prabhatsuman Apr 23, 2024
ce9a32e
another file changed
prabhatsuman Apr 23, 2024
9ce8a40
FTS mig change restored
prabhatsuman Apr 23, 2024
3d53e52
Introduces Subtype option and implemented generate report
ThisisMS11 Apr 23, 2024
b15716d
Merge pull request #1551 from prabhatsuman/ac-4
prabhatsuman Apr 23, 2024
8855721
Merge pull request #1537 from FusionIIIT/ac-4
prabhatsuman Apr 23, 2024
d7b00f8
Merge pull request #1546 from theoden42/gad-4-final
prajjwalkapoor Apr 24, 2024
7143741
Revert "Merging AC-4 to Latest-Staging"
prabhatsuman Apr 24, 2024
e632e56
Merge pull request #1558 from FusionIIIT/revert-1537-ac-4
prabhatsuman Apr 24, 2024
bb1fc5f
Merge branch 'latest_staging' into gad-4-final
VarunGitGood Apr 24, 2024
fb8c35b
Merge pull request #1557 from FusionIIIT/gad-4-final
Priyansh61 Apr 24, 2024
781861f
corrected acadadmin login issues
Divyanshu-iiitdmj Apr 24, 2024
258b955
Merge pull request #1559 from Divyanshusir/latest_staging
prabhatsuman Apr 24, 2024
312b20c
Merge pull request #1560 from FusionIIIT/ac-2
prabhatsuman Apr 24, 2024
d59b421
added verify course api endpoint
Bhavik-ag Apr 24, 2024
ad15bae
chore: added updated files for gymkhana in applications and templates
Anurag607 Apr 24, 2024
f81871d
Merge pull request #1562 from Anurag607/latest_staging_new
prabhatsuman Apr 24, 2024
a40440c
fts user validation fixed and side panel notifications
Ravichendraa Apr 24, 2024
39177ff
Merge branch 'ac-1_final' of https://github.com/FusionIIIT/Fusion int…
Ravichendraa Apr 24, 2024
04e4ecc
Sidepanel Added
Ravichendraa Apr 24, 2024
f0cd7b3
Delete FusionIIIT/applications/globals/migrations/0015_auto_20240425_…
prabhatsuman Apr 24, 2024
723946e
Delete FusionIIIT/applications/research_procedures/migrations/0004_au…
prabhatsuman Apr 24, 2024
550dade
Delete FusionIIIT/applications/globals/migrations/0014_auto_20240425_…
prabhatsuman Apr 24, 2024
5f2eb17
corrected ac-4 module
xenouno Apr 24, 2024
23e9af8
Merge pull request #1567 from xenouno/latest_staging
prabhatsuman Apr 24, 2024
d7dc61f
Merge pull request #1565 from itsspriyansh/sa-3
prabhatsuman Apr 24, 2024
bf0d813
Merge pull request #1568 from FusionIIIT/ac-4
prabhatsuman Apr 24, 2024
93cfeb8
refactor: api
itsspriyansh Apr 25, 2024
2d5cfac
Delete FusionIIIT/applications/central_mess/migrations/0010_auto_2024…
prabhatsuman Apr 24, 2024
bf4d386
Introduces Subtype option and implemented generate report
ThisisMS11 Apr 23, 2024
fc8fdf5
removed conflicts
ThisisMS11 Apr 25, 2024
0ecbdc8
removed conflicts
ThisisMS11 Apr 25, 2024
0c41891
Merge branch 'mohit_fusion_1' of https://github.com/ThisisMS11/Fusion…
ThisisMS11 Apr 25, 2024
e54482f
corrected PHC notifications
prabhatsuman Apr 25, 2024
ed35166
Merge pull request #1569 from prabhatsuman/OSS-2
prabhatsuman Apr 25, 2024
6e66b1c
Merge pull request #1570 from FusionIIIT/os-2
prabhatsuman Apr 25, 2024
5ff2879
multi copis
SharanKumar06 Apr 25, 2024
d645a42
Merge pull request #1520 from Bhavik-ag/ac2-apis
ChaudharyRaman Apr 25, 2024
1f9fb72
Merge pull request #1573 from FusionIIIT/ac-2
ChaudharyRaman Apr 25, 2024
703b5ac
fix acadadmin error
Daksh119 Apr 25, 2024
b438fa4
refactor: urls and views
itsspriyansh Apr 25, 2024
bf0d1e3
Merge pull request #1574 from Daksh119/ac-final
prabhatsuman Apr 25, 2024
88e664d
Merge pull request #1576 from FusionIIIT/ac-3-final
prabhatsuman Apr 25, 2024
97baf89
Merge pull request #1566 from ThisisMS11/mohit_fusion_1
prajjwalkapoor Apr 25, 2024
ab2cd9a
fixed issues of testing
Divyanshu-iiitdmj Apr 26, 2024
41e1058
Merge pull request #1525 from 21BCS035/gad-new
prajjwalkapoor Apr 26, 2024
447de08
Merge pull request #1579 from Divyanshusir/latest_staging
prabhatsuman Apr 26, 2024
e33a503
Merge pull request #1581 from FusionIIIT/gad-2
itsspriyansh Apr 26, 2024
9bba0d6
Resolve minor issues
ThisisMS11 Apr 26, 2024
1f54705
Merge pull request #1582 from ThisisMS11/mohit_fusion_1
prabhatsuman Apr 26, 2024
a2615b5
notification error in gad-2 resolved
prabhatsuman Apr 27, 2024
69b987d
Merge pull request #1584 from prabhatsuman/latest_staging
prabhatsuman Apr 27, 2024
35408d2
Merge pull request #1580 from FusionIIIT/ac-2
prabhatsuman Apr 27, 2024
4d57dfb
updated migrations for all modules
prabhatsuman Apr 27, 2024
71f4d2e
Merge pull request #1585 from prabhatsuman/latest_staging
prabhatsuman Apr 27, 2024
c914f68
add_projects updated
SharanKumar06 May 3, 2024
6312078
dropdown added
SharanKumar06 May 3, 2024
8a579cc
Merge branch 'latest_staging' of github.com:SharanKumar06/Fusion into…
SharanKumar06 May 3, 2024
e250fef
Merge branch 'ps-1' into mig
prabhatsuman May 3, 2024
4b51036
added ps-1
prabhatsuman May 3, 2024
a904ba6
Merge pull request #1583 from FusionIIIT/ps-1
prabhatsuman May 3, 2024
db86040
bug fix in ac-7
prabhatsuman May 3, 2024
3f7771f
Merge pull request #1575 from FusionIIIT/ac-5
itsspriyansh May 3, 2024
89775df
Merge branch 'FusionIIIT:latest_staging' into latest_staging
prabhatsuman May 3, 2024
aa89a49
Enable,checks on module and navigate in navbar
TusharGupta03 May 3, 2024
f2a067e
Merge pull request #1587 from TusharGupta03/FinalChanges
prabhatsuman May 3, 2024
b9ae288
Merge branch 'latest_staging' into mig
prabhatsuman May 3, 2024
c9deb49
Merge pull request #1589 from prabhatsuman/latest_staging
prabhatsuman May 3, 2024
4a9b752
Merge pull request #1588 from FusionIIIT/gad-5
prabhatsuman May 4, 2024
7a0fc39
Swayam, course code and minor fixes
Daksh119 May 4, 2024
4dc7f39
Merge pull request #1590 from Daksh119/ac-3-final
prabhatsuman May 4, 2024
7939417
Merge pull request #1591 from FusionIIIT/ac-3-final
prabhatsuman May 4, 2024
1b37a4d
changes done final
SharanKumar06 May 4, 2024
d0143b2
Merge branch 'latest_staging' into rspc-2025-gad7
SharanKumar06 May 4, 2024
726abd8
merge confilcts resolved
SharanKumar06 May 4, 2024
d85114b
Merge branch 'new9ac1' of https://github.com/Ravichendraa/Fusion; bra…
Ravichendraa May 4, 2024
087fadf
dep final push
prajjwalkapoor May 4, 2024
3f60f80
Merge pull request #1594 from FusionIIIT/ac-6-final
prajjwalkapoor May 4, 2024
56a0fd0
delete migrations
prajjwalkapoor May 4, 2024
b944341
Update requirements.txt
prajjwalkapoor May 4, 2024
89f0220
Update requirements.txt
prajjwalkapoor May 4, 2024
dfe2c57
Merge pull request #1592 from SharanKumar06/rspc-2025-gad7
prajjwalkapoor May 4, 2024
3e186aa
Modify viewHIstory API
aish0749 May 4, 2024
c79cca6
Update 0001_initial.py
prabhatsuman May 4, 2024
3c49d8a
apis added
SharanKumar06 May 4, 2024
827c71d
Merge branch 'rspc-2025-gad7' of github.com:SharanKumar06/Fusion into…
SharanKumar06 May 4, 2024
7f3765c
Merge pull request #1593 from Ravichendraa/new9ac1
prabhatsuman May 4, 2024
00c64b6
Merge pull request #1597 from FusionIIIT/ac-1
prabhatsuman May 4, 2024
8352e67
Merge pull request #1598 from SharanKumar06/rspc-2025-gad7
prabhatsuman May 4, 2024
6529198
Merge pull request #1595 from FusionIIIT/rspc
prabhatsuman May 4, 2024
0473fbf
Merge pull request #1596 from aish0749/latest_staging
prajjwalkapoor May 4, 2024
bf921e1
revert to db sync
prabhatsuman May 4, 2024
100c4dc
Merge pull request #20 from prabhatsuman/latest_staging
prabhatsuman May 4, 2024
6098339
added ac-6, rspc
prabhatsuman May 4, 2024
a7567d0
added apis for app
Daksh119 May 5, 2024
ab5fcb4
Merge pull request #1600 from Daksh119/ac-3-final
prabhatsuman May 5, 2024
fdb38ae
Merge pull request #1602 from FusionIIIT/ac-3-final
prabhatsuman May 5, 2024
6167924
Merge pull request #1604 from FusionIIIT/gad-1
itsspriyansh May 5, 2024
8912494
fixed bugs api chages
Harshul-25 May 5, 2024
14550e5
Merge pull request #1605 from Harshul-25/latest_staging
prabhatsuman May 5, 2024
e07930f
rebate fix
Harshul-25 May 5, 2024
a2cc468
Update filetracking.html
prabhatsuman May 5, 2024
db960a9
Merge pull request #1608 from Harshul-25/latest_staging
prabhatsuman May 5, 2024
9ab977d
minor issues in the Dashboard
TusharGupta03 Jun 19, 2024
cc80f40
this commit, adds a new search functionality, a new pagination featur…
theoden42 Jun 22, 2024
513c081
Merge pull request #1612 from theoden42/latest_staging
prajjwalkapoor Jul 1, 2024
92cc502
Merge pull request #1611 from TusharGupta03/lates_sta
ChaudharyRaman Jul 14, 2024
088335f
updated mig
prabhatsuman Jul 16, 2024
4445c2f
Merge branch 'mig' into latest_staging
prabhatsuman Jul 16, 2024
8aa30b5
corrected globals mig
prabhatsuman Jul 16, 2024
693e189
Merge pull request #1614 from prabhatsuman/latest_staging
prabhatsuman Jul 16, 2024
58b64c6
changed allot courses function to update pre registration data using …
hrithik-09 Jul 26, 2024
d5fffde
updated user card to show roll no
hrithik-09 Jul 26, 2024
2769761
Merge pull request #1616 from hrithik-09/latest_staging
ChaudharyRaman Jul 26, 2024
ebad56d
increase options for less fee payment
hrithik-09 Jul 26, 2024
d133ee9
Merge pull request #1618 from hrithik-09/latest_staging
prabhatsuman Jul 26, 2024
3a2ad19
Update admin.py
SukulSarve Jul 31, 2024
2eaa8fb
Merge pull request #1619 from SukulSarve/lt
prabhatsuman Jul 31, 2024
81b99ca
new feat. marks submission, improved attendance and grading scheme
Daksh119 Jul 31, 2024
7a6261d
Merge pull request #1620 from Daksh119/latest-ac3
prabhatsuman Jul 31, 2024
2b47d80
Health Center Contribution - PR201 (#1625)
ramG-reddy Oct 7, 2024
9b4954d
Configurations for Fusion-client (#1628)
ramG-reddy Oct 7, 2024
090fb0c
fix: Resolved System Check errors (#1630)
ramG-reddy Oct 14, 2024
68739b3
Added API folder in iwdModuleV2
Bhargavzz Oct 17, 2024
baef7d5
Added endpoints in API folder in iwdModuleV2
abhiJeetP10 Oct 17, 2024
9ddf20d
Added additional endpoints in API folder in iwdModuleV2
abhiJeetP10 Oct 17, 2024
55886bf
fix[api] : fetchdesignation, requestview
dcoder13 Oct 18, 2024
2e83db6
fix : view file endpoint
dcoder13 Oct 21, 2024
8626fcd
Resolved Major bug and also added username field in auth data (#1635)
Pratik2026 Oct 22, 2024
4a2ed58
minor updates while updating the issue-work-order table (#4)
dotniiko Oct 22, 2024
e2860d5
minor changes (#5)
Somgester Oct 22, 2024
543aa3c
approve/reject and view file
dcoder13 Oct 22, 2024
4e82947
fix: work order
dcoder13 Oct 23, 2024
a5c89fd
Minor changes in addBudget and editBudget endpoints (#6)
abhiJeetP10 Oct 23, 2024
cb344e0
fix : serializer
dcoder13 Nov 7, 2024
e1d13be
modified views related to audit document view (#7)
Bhargavzz Nov 14, 2024
a850633
Minor changes for integration with frontend
pred695 Nov 16, 2024
de7a5b6
fixed apis
dcoder13 Nov 18, 2024
de96808
fix: serializer overriding requestCreatedBdBy value
dcoder13 Nov 18, 2024
447308d
fix: serializer overriding requestCreatedBdBy value
dcoder13 Nov 18, 2024
0930800
fix api
dcoder13 Nov 18, 2024
2edb791
Merge branch 'dashboard_client' into gad-2(latest)
dcoder13 Nov 18, 2024
bfe1e25
chore: made handlers consistent
dcoder13 Nov 19, 2024
789f3d9
fix: some minor fixes
pred695 Nov 20, 2024
5c0ac8b
major fixes
dcoder13 Nov 20, 2024
91d964a
minor fixes
pred695 Nov 20, 2024
85ab3fa
add: updated urls.py and file upload
pred695 Nov 21, 2024
e2e2256
fix: handle dean process request file attachment upload
dcoder13 Jan 7, 2025
375d0b8
fix : forward file
dcoder13 Jan 8, 2025
5c99c5a
Test os 3 (#1700)
aarav0012 Jan 27, 2025
13e33f2
Dashboard client (#1697)
shramanpaul Jan 28, 2025
5008abd
All changes of Complaint Management (#1704)
Charan2437 Feb 4, 2025
c613977
eis module version 1 (#1706)
RameshBabuAsh Feb 4, 2025
1f645aa
fix: multiple file uploads, and ajax dropdown cbv
pred695 Feb 10, 2025
4e8c013
add: added multiple drafts upload
pred695 Feb 12, 2025
31706f0
fix: uncommented mess migrations
pred695 Feb 16, 2025
9c1f0ee
Merge pull request #1710 from pred695/gad-4
Pratik2026 Feb 16, 2025
fdec7d3
Department module Version 1 (#1709)
Vithesh2215 Feb 17, 2025
79b18a6
[Dashboard] Modified Profile views to fetch relevant data only (#1711)
Pratik2026 Feb 19, 2025
80b3507
SA-2 [New-UI] - updated APIs for use with fusion-client (#1717)
Adi8712 Mar 4, 2025
db37756
SA-2 new UI updates (#1718)
Adi8712 Mar 4, 2025
e528b98
Old version(gad 2) (#1721)
dcoder13 Mar 18, 2025
783daca
Revert "Old version(gad 2) (#1721)" (#1723)
dcoder13 Mar 18, 2025
0d250b5
fix:migrations
dcoder13 Mar 18, 2025
7acc894
fix: merge
dcoder13 Mar 18, 2025
76222d8
Merge branch 'dashboard_client' into gad-2-old
dcoder13 Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,6 @@ package-lock.json


.DS_Store
**/generated.pdf

.ruff_cache/
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
18 changes: 15 additions & 3 deletions FusionIIIT/Fusion/middleware/custom_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.contrib.auth.signals import user_logged_in
from django.dispatch import receiver
from applications.globals.models import (ExtraInfo, Feedback, HoldsDesignation,
Issue, IssueImage, DepartmentInfo)
Issue, IssueImage, DepartmentInfo,ModuleAccess)
from django.shortcuts import get_object_or_404, redirect, render

def user_logged_in_middleware(get_response):
Expand Down Expand Up @@ -35,7 +35,19 @@ def user_logged_in_handler(sender, user, request, **kwargs):
print(i)

request.session['currentDesignationSelected'] = designation[0]
request.session['allDesignations'] = designation
request.session['allDesignations'] = designation
first_designation = designation[0]
module_access = ModuleAccess.objects.filter(designation=first_designation).first()

if module_access:
access_rights = {}

field_names = [field.name for field in ModuleAccess._meta.get_fields() if field.name not in ['id', 'designation']]

for field_name in field_names:
access_rights[field_name] = getattr(module_access, field_name)

request.session['moduleAccessRights'] = access_rights
print("logged iN")

# Set the flag in the session to indicate that the function has bee+n executed
Expand All @@ -47,4 +59,4 @@ def middleware(request):
response = get_response(request)
return response

return middleware
return middleware
11 changes: 8 additions & 3 deletions FusionIIIT/Fusion/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
# email of sender

EMAIL_HOST_USER = '[email protected]'
# EMAIL_HOST_PASSWORD = 'password'

EMAIL_PORT = 587
ACCOUNT_EMAIL_REQUIRED = True
Expand Down Expand Up @@ -79,8 +80,8 @@


# CELERY STUFF
# CELERY_BROKER_URL = 'redis://localhost:6379'
# CELERY_RESULT_BACKEND = 'redis://localhost:6379'
CELERY_BROKER_URL = 'redis://localhost:6379'
CELERY_RESULT_BACKEND = 'redis://localhost:6379'
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
Expand Down Expand Up @@ -128,6 +129,7 @@
'applications.ps1',
'applications.programme_curriculum',
'applications.placement_cell',
'applications.otheracademic',
'applications.recruitment',
'applications.scholarships',
'applications.visitor_hostel',
Expand Down Expand Up @@ -279,7 +281,10 @@
DATA_UPLOAD_MAX_NUMBER_FIELDS = 10240
YOUTUBE_DATA_API_KEY = 'api_key'

CORS_ALLOWED_ORIGINS = [
"http://localhost:5173", # Add your frontend origin here
]

CORS_ALLOW_CREDENTIALS = True

CORS_ORIGIN_ALLOW_ALL = True
ALLOW_PASS_RESET = True
6 changes: 6 additions & 0 deletions FusionIIIT/Fusion/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
from django.contrib import admin
from django.contrib.auth import views as auth_views

from django.views.static import serve


urlpatterns = [
url(r'^', include('applications.globals.urls')),
Expand All @@ -37,6 +39,8 @@
url(r'^__debug__/', include(debug_toolbar.urls)),
url(r'^research_procedures/', include('applications.research_procedures.urls')),
url(r'^accounts/', include('allauth.urls')),

# url(r'^api/iwdModuleV2/', include('applications.iwdModuleV2.api.urls')),


url(r'^eis/', include('applications.eis.urls')),
Expand All @@ -61,4 +65,6 @@
url(r'^hr2/', include('applications.hr2.urls')),
url(r'^recruitment/', include('applications.recruitment.urls')),
url(r'^examination/', include('applications.examination.urls')),
url(r'^otheracademic/', include('applications.otheracademic.urls')),
url(r'^media/(?P<path>.*)$', serve, {"document_root": settings.MEDIA_ROOT},),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
3 changes: 2 additions & 1 deletion FusionIIIT/applications/academic_information/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

# url(r'^meeting',views.meeting_api,name='meeting-get-api'),

# url(r'^calendar',views.calendar_api,name='calendar-get-api'),
url(r'^calendar',views.ListCalendarView.as_view(),name='calendar-get-api'),
url(r'^update-calendar',views.update_calendar,name='calendar-update-api'),

# url(r'^holiday',views.holiday_api,name='holiday-get-api'),

Expand Down
22 changes: 21 additions & 1 deletion FusionIIIT/applications/academic_information/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from applications.globals.models import User,ExtraInfo
from applications.academic_information.models import Student, Course, Curriculum, Curriculum_Instructor, Student_attendance, Meeting, Calendar, Holiday, Grades, Spi, Timetable, Exam_timetable
from . import serializers
from rest_framework.generics import ListCreateAPIView

@api_view(['GET'])
@permission_classes([IsAuthenticated])
Expand Down Expand Up @@ -82,7 +83,26 @@ def calendar_api(request):
'calendar' :calendar_serialized,
}
return Response(data=resp,status=status.HTTP_200_OK)


class ListCalendarView(ListCreateAPIView):
permission_classes = [IsAuthenticated]
authentication_classes=[TokenAuthentication]
serializer_class = serializers.CalendarSerializers
queryset = Calendar.objects.all()

@api_view(['PUT'])
@permission_classes([IsAuthenticated])
@authentication_classes([TokenAuthentication])
def update_calendar(request):
if request.method == "PUT":
id = request.data.get("id")
instance = Calendar.objects.get(pk = id)
instance.from_date = request.data.get("from_date")
instance.to_date = request.data.get("to_date")
instance.description = request.data.get("description")
instance.save()

return Response({"message": "Updated successfully!"})

@api_view(['GET'])
@permission_classes([IsAuthenticated])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.5 on 2024-04-15 23:58
# Generated by Django 3.1.5 on 2024-07-16 15:44

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -9,8 +9,8 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
('globals', '0001_initial'),
('programme_curriculum', '0001_initial'),
('globals', '0001_initial'),
]

operations = [
Expand Down
31 changes: 21 additions & 10 deletions FusionIIIT/applications/academic_information/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

from applications.academic_procedures.views import acad_proced_global_context , get_sem_courses
from applications.programme_curriculum.models import Batch

from django.db.models import Q


@login_required
Expand Down Expand Up @@ -845,6 +845,8 @@ def generatexlsheet(request):
# print(request.POST)
try:
batch = request.POST['batch']#batch hai year wala (2020 , 21)
if batch == "":
batch = datetime.datetime.now().year
course_id = int(request.POST['course']) # id of course in integer
course = course = Courses.objects.get(id=course_id)

Expand All @@ -858,17 +860,26 @@ def generatexlsheet(request):
obj=""

registered_courses = []
for i in obj:
if i.student_id.batch_id.year == int(batch):
registered_courses.append(i)
registered_courses = course_registration.objects.filter(
Q(working_year=int(batch)) &
Q(course_id=course) &
Q(student_id__finalregistration__verified=True)
)

# for i in obj:
# if i.student_id.batch_id.year == int(batch):
# registered_courses.append(i)
ans = []
student_ids = set()
for i in registered_courses:
k = []
k.append(i.student_id.id.id)
k.append(i.student_id.id.user.first_name)
k.append(i.student_id.id.user.last_name)
k.append(i.student_id.id.department)
ans.append(k)
if i.student_id.id.id not in student_ids:
student_ids.add(i.student_id.id.id )
k = []
k.append(i.student_id.id.id)
k.append(i.student_id.id.user.first_name)
k.append(i.student_id.id.user.last_name)
k.append(i.student_id.id.department)
ans.append(k)
ans.sort()
output = BytesIO()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

from applications.academic_procedures.models import (ThesisTopicProcess, InitialRegistrations,InitialRegistration,
FinalRegistration, FinalRegistrations, SemesterMarks,
BranchChange , StudentRegistrationChecks, Semester, backlog_course , CourseSlot , FeePayments , Course, course_registration)
BranchChange , StudentRegistrationChecks, Semester, backlog_course , CourseSlot , FeePayments , course_registration)

from applications.programme_curriculum.models import Course

from applications.academic_information.api.serializers import (CurriculumInstructorSerializer,
CurriculumSerializer , CourseSerializer , StudentSerializers )
Expand Down Expand Up @@ -73,7 +75,10 @@ class Meta:
model = CourseSlot
fields = ('__all__')


class CourseSerializer(serializers.ModelSerializer):

class Meta:
model = Course
fields = ('__all__')
fields = ['id','code','name','credit']

1 change: 1 addition & 0 deletions FusionIIIT/applications/academic_procedures/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

url(r'^acad/view_registrations' , views.acad_view_reigstrations , name='acad_view_registrations'),
url(r'^acad/verify_registration' , views.verify_registration , name='verify_registration'),
url(r'^acad/verify_course' , views.verify_course , name='verify_course'),
url(r'^acad/get_course_list' , views.get_course_list , name = 'get_course_list' ),
url(r'^acad/get_all_courses' , views.get_all_courses , name = 'get_all_courses' ),
url(r'^acad/gen_roll_list' , views.gen_roll_list , name = 'gen_roll_list' ),
Expand Down
Loading