gnowledge/gstudio — pull request #792 by AvadootNachankar (2014-09-13 10:24:02+00:00)
Title: MIS Updates: 'Announced Course' Implementation (Updated save-part)

**Functionalities implemented:**

**1) Saving functionality implemented for NUSSD Course and Announced Course**

- Fill search criteria and look all out for already created announced-course(s) for given duration (if any).

- Based on search criteria you will get already existing announced-course(s) [if any] along with remaining NUSSD-course(s)!

- Select/Deselect option(s) from the list for announcing them

- File modified:

1) urls/ajax-urls.py
- Added get_announced_courses url - which in turns calls to get_announced_course() view

2) views/ajax_views
- Added get_announced_courses() - This view returns list of announced-course(s) that match given criteria along with remaining NUSSD-Course(s) for which match doesn't exists

3) views/course.py - course_create_edit() updated

4) templates/ndf/announced_course_create_edit.html

**2) Minor changes - instead of get_dbref(), making use of ObjectId**

- Files modified:

1) management/commands/data_entry.py

- Code modified to parse updated "Date of Registration" field

- Updated create_gattribute() & create_grelation()

- Query modified: instead of get_dbref(), making use of ObjectId

2) views/methods.py

- Updated create_gattribute() & create_grelation()

- Query modified: instead of get_dbref(), making use of ObjectId