Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore updated_at and updated_by field values when updating plots via the API. #2963

Merged

Commits on Jan 30, 2017

  1. Fix api edit

    The android app sends `updated_by`. It doesn't know it's a foreign key,
    neither does the api, so it gets set to the `id` rather than the model.
    This causes a `ValueError` in auditing.
    
    The api already has a list of attributes to ignore.
    `updated_by` can be safely ignored because it is set in auditing.
    Same for `updated_at`. Since they are supposed to be set in auditing,
    they really should both be ignored.
    
    So ignore them.
    
    --
    
    Connects to OpenTreeMap/otm-android#303
    Connects to OpenTreeMap/otm-android#304
    RobinIsTheBird committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    78766cd View commit details
    Browse the repository at this point in the history