Error when adding new tree species

57 views
Skip to first unread message

Matthew Vanderhorst

unread,
Sep 4, 2014, 2:05:07 PM9/4/14
to opentree...@googlegroups.com
When I add a new species, I receive the following error,

all calls to full clean must be done via 'full_clean_with_user'.

- Matthew Vanderhorst

Andrew Thompson

unread,
Sep 10, 2014, 10:40:04 AM9/10/14
to opentree...@googlegroups.com
Hi Matt,

How are you adding a new species? What steps are you going through?

-Andrew


--
You received this message because you are subscribed to the Google Groups "opentreemap-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Andrew Thompson, Community Evangelist

Azavea |  340 N 12th St, Ste 402, Philadelphia, PA
atho...@azavea.com  | T 215.701.7689  | F 215.925.2663
Web azavea.com  |  Blog azavea.com/blogs  | Twitter @azavea

Join our community! Google Groups:

Matthew Vanderhorst

unread,
Sep 10, 2014, 11:55:27 AM9/10/14
to opentree...@googlegroups.com

I was adding them using the add species form in admin area.



 

Matthew Vanderhorst

Customer Service Director

10101 Montgomery Rd.

Montgomery, Ohio 45242

Phone: (513) 792-8323

Fax: (513) 891-2498

Email: mva...@ci.montgomery.oh.us

Web: http://www.montgomeryohio.org

"Providing superior services with integrity. Partnering with you to build a great community!"


From: opentree...@googlegroups.com <opentree...@googlegroups.com> on behalf of Andrew Thompson <atho...@azavea.com>
Sent: Wednesday, September 10, 2014 10:39 AM
To: opentree...@googlegroups.com
Subject: Re: [opentreemap-user] Error when adding new tree species
 
You received this message because you are subscribed to a topic in the Google Groups "opentreemap-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/opentreemap-user/21vOAQKn8PE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to opentreemap-us...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
This e-mail message, including attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential and protected by law from unauthorized disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

Michael Maurizi

unread,
Sep 10, 2014, 12:04:42 PM9/10/14
to opentree...@googlegroups.com
Matthew,

I'm one of the OTM2 developers.

We have not generally used the Django Admin site for data entry, because we have a system that audits changes to certain models, and records which user made the change, and the Django Admin site does not support this.

I recommend you use the Django shell (source your virtual environment and run 'python manage.py shell')

You will have to save species objects using the method 'save_with_user', and pass it the user you want to be recorded as making the change (if you had a user named joe, you could get that user object using 'User.object.get(username="joe")'

Mike
Michael V. Maurizi Jr
Software Developer
Azavea |  340 N 12th St, Suite 402, Philadelphia, PA
mmau...@azavea.com  | T 215.558.6190

Nico Aliotta

unread,
May 12, 2016, 9:11:17 AM5/12/16
to opentreemap-user
Is there any news how to add new species and scientific names of trees?

For example i want to add Pinus pinea that is very common here but is not listed in your database, maybe because is not present in US

Thanks

Nico Aliotta

unread,
May 23, 2016, 2:30:09 PM5/23/16
to opentreemap-user
Can anyone tell me an example of how to add a tree specie?

Where are stored the scientific names and common names? in the database postgresql? in which table?
 

Rick Mohr

unread,
May 23, 2016, 2:31:11 PM5/23/16
to opentree...@googlegroups.com

On Mon, May 23, 2016 at 2:30 PM, Nico Aliotta <nicoa...@gmail.com> wrote:
Can anyone tell me an example of how to add a tree specie?

Where are stored the scientific names and common names? in the database postgresql? in which table?
 

--
You received this message because you are subscribed to the Google Groups "opentreemap-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rick Mohr, Software Developer
Azavea  |  990 Spring Garden Street, 5th Floor, Philadelphia, PA
215.701.7504  |  Web azavea.com  |  @azavea

Nico Aliotta

unread,
May 24, 2016, 1:10:36 PM5/24/16
to opentreemap-user
So it's "only" an array?

I've seen that on the server i've  .../opentreemap/treemap/species/__init__.py
i've edited it also for common names.

For example i've edited this line:
{"otm_code": "ABAL" , "common_name": "Silver fir" , "genus": "Abies" , "species": "alba" , "cultivar": "" , "other_part_of_name": ""},
in
{"otm_code": "ABAL" , "common_name": "Abete bianco" , "genus": "Abies" , "species": "alba" , "cultivar": "" , "other_part_of_name": ""},
to edit the italian common name SAVED it but still appear on the search box [Silver fir] as common name!

After edit it i've to do anything else?

Rick Mohr

unread,
May 24, 2016, 1:22:12 PM5/24/16
to opentree...@googlegroups.com
When you create an instance, species are read from that list and added to the treemap_species table with the instance_id of your new instance. So changing the list won't affect an instance you've already created.

If you create a new instance you should see your changes.

Rick

--
You received this message because you are subscribed to the Google Groups "opentreemap-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nico Aliotta

unread,
May 24, 2016, 1:32:26 PM5/24/16
to opentreemap-user
Thanks. I'll try to add another instance.
The code are important for something? Maybe for ecobenefit? If i add other species i've to add codes for them? or are unnecessary?

Is there anyway to save and import the trees that i've added on this instance (edit them with new common names) and reimport in the new instance?

 

Michael Maurizi

unread,
May 24, 2016, 1:37:31 PM5/24/16
to opentreemap-user
The codes are for ecobenefits calculations, yes.

--
You received this message because you are subscribed to the Google Groups "opentreemap-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Michael Maurizi, Software Developer
Azavea |  990 Spring Garden, 5th Floor, Philadelphia, PA
mmau...@azavea.com | Web azavea.com  |  @azavea

Rick Mohr

unread,
May 24, 2016, 2:06:46 PM5/24/16
to opentree...@googlegroups.com
The i-Tree code used for ecobenefit calculations is derived from the "OTM code" of the tree's species and the i-Tree region, using the tables in

Nico Aliotta

unread,
May 24, 2016, 2:10:16 PM5/24/16
to opentreemap-user
I can confirm that creating a new instance i can see the modified common names. :-)

but 
If i add other species i've to add codes for them? or are unnecessary? From the answer of maurizi i think are not necessary but if that value is empty is a problem? I don't think so.
Is there anyway to save and import the trees that i've added on the old instance and import in the new instance?

i've backup copy :)

Nico Aliotta

unread,
Jul 8, 2016, 2:35:53 PM7/8/16
to opentreemap-user
Maybe the fastest way to change the common name in other languagges is to play with the database.
So you have not to delete and create another instance.

i've done for example:
UPDATE treemap_species SET common_name='Pino Comune' WHERE id=730;
to change the common name fo id 730 of treemap_species that is Pinus pinea with common name (italian) Pino comune.




Reply all
Reply to author
Forward
0 new messages