On Apr 24, 12:07 am, Heigler <lordheig...@gmail.com> wrote:
> Hello,
> I think the problem isn't currency in your ModelAdmin, i think the
> problem is the field "city", where is it in your CountryModel?
Thanks for the answer.
I already correct that, and also in the import (it was a bad copy-
paste) and still getting the same problem.
from vitramar.lugares.models import Place, Country
from django.contrib import admin
class CountryAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['country']}),
('General info', {'fields': ['continent', 'president',
'currency'], 'classes': ['collapse']}),
]
admin.site.register(Country, CountryAdmin)
By the way, I tried:
admin.site.register(Place)
and when trying to add a new place gives an error:
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/lugares/place/add/
App u'lugares', model u'place', not found.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---