[FIX] BASE : Fixed the issue that announcement is not showing based on company
This commit is contained in:
@@ -87,8 +87,10 @@ def create_announcement(request):
|
||||
employees = form.cleaned_data["employees"]
|
||||
departments = form.cleaned_data["department"]
|
||||
job_positions = form.cleaned_data["job_position"]
|
||||
company = form.cleaned_data["company_id"]
|
||||
anou.department.set(departments)
|
||||
anou.job_position.set(job_positions)
|
||||
anou.company_id.set(company)
|
||||
messages.success(request, _("Announcement created successfully."))
|
||||
|
||||
emp_dep = User.objects.filter(
|
||||
@@ -179,8 +181,10 @@ def update_announcement(request, anoun_id):
|
||||
employees = form.cleaned_data["employees"]
|
||||
departments = form.cleaned_data["department"]
|
||||
job_positions = form.cleaned_data["job_position"]
|
||||
company = form.cleaned_data["company_id"]
|
||||
anou.department.set(departments)
|
||||
anou.job_position.set(job_positions)
|
||||
anou.company_id.set(company)
|
||||
messages.success(request, _("Announcement updated successfully."))
|
||||
|
||||
emp_dep = User.objects.filter(
|
||||
|
||||
Reference in New Issue
Block a user