Skip to content

Commit

Permalink
Fixed issue in new symsys internship, where it would not save the ite…
Browse files Browse the repository at this point in the history
…m name.
  • Loading branch information
mikemintz committed Jan 30, 2015
1 parent 419b8af commit bb37bb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deme_django/modules/symsys/views.py
Expand Up @@ -529,6 +529,7 @@ def type_internshipcreate_html(self):


new_ad = HtmlAdvertisement(body=body, name=ad_name, contact_info=contact_info)
new_ad.name = ad_name #TODO this is a hack due to multiple inheritance bug in Django. remove it when bug is fixed
permissions = [AllToOnePermission(ability='do_anything', is_allowed=False),
OneToOnePermission(source=self.cur_agent, ability='do_anything', is_allowed=True)]
new_ad.save_versioned(action_agent=self.cur_agent, initial_permissions=permissions)
Expand Down

0 comments on commit bb37bb1

Please sign in to comment.