MrChoclate / uml-to-django

Automatically exported from code.google.com/p/uml-to-django
0 stars 0 forks source link

Step number seven on setup page is strange #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I believe that the seventh step in the quick start up for uml2dj is not 
consistent:

7 - In the PRJ/APP folder, rename admin_custom.py into admin_custom.py and 
models.py into models.py. (you only need to do this once).

It should be

7 - In the PRJ/APP folder, rename _admin_custom.py into admin_custom.py and 
_models.py into models.py. (you only need to do this once).

Furthermore, i have to rename the files whenever i generate the code, not only 
once.

Original issue reported on code.google.com by yguar...@gmail.com on 25 Oct 2010 at 12:31

GoogleCodeExporter commented 9 years ago
Hi,

Thank you for reporting this mistake in the documentation. The text now 
contains the missing underscores.

In principle you don't need to rename these files more than once. This is 
because they will contain your own customisation. 

Say, if you add some code in one of your admin classes in admin_custom.py to 
specify the fields to display in the list view, you don't want to loose those 
modifications. 

However, I agree that if you add a new class in your UML diagram and run 
uml2django, a new admin class will be added to you _admin_custom.py. In case 
you need to customise this admin class, you can simply copy and paste it to 
your own source file (admin_custom.py).

Best,

GL

Original comment by goffer.l...@gmail.com on 27 Oct 2010 at 10:21