Skip to content

Commit

Permalink
Fix a little error when you use DEFAULT_INPLACE_EDIT_OPTIONS. Fixed d…
Browse files Browse the repository at this point in the history
  • Loading branch information
goinnn committed Aug 9, 2013
1 parent 6b804fd commit 219880b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
Releases
========

0.95 (2013-??-??)
0.95 (2013-08-09)
-----------------

* Fix a small typo error
* Fix a little error when you use DEFAULT_INPLACE_EDIT_OPTIONS
* Thanks to:
* `Kartik Agaram <https://github.com/akkartik>`_
* `Iwaszko <https://github.com/iwaszko>`_



Expand Down
5 changes: 3 additions & 2 deletions inplaceeditform/fields.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from copy import deepcopy

from django.conf import settings
from django.core.urlresolvers import reverse
from django.contrib.admin.widgets import AdminSplitDateTime, AdminDateWidget
Expand Down Expand Up @@ -65,8 +66,8 @@ def get_config(self, **kwargs):
"""
config = kwargs

config_from_settings = getattr(
settings, "DEFAULT_INPLACE_EDIT_OPTIONS", {})
config_from_settings = deepcopy(getattr(
settings, "DEFAULT_INPLACE_EDIT_OPTIONS", {}))
config_one_by_one = getattr(
settings, "DEFAULT_INPLACE_EDIT_OPTIONS_ONE_BY_ONE", False)

Expand Down

0 comments on commit 219880b

Please sign in to comment.