In this doc should I be able to paste the admin.py code and see
changes, I am not. seeing anything.  I wanted to see what the code
did, so that I will know if I what to use this one or that one?

On Sep 8, 9:44 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Sep 8, 10:39 am, KillaBee <[EMAIL PROTECTED]>
> wrote:
>
> > Thanks I thnk this is almost done.  This is a pretty small app, but
> > changing it over is teaching me a lot about django, and this admin
> > error should be the last thing.  I saw that it is not in the oldforms
> > like formfields and validators, thus I get is this error:
> > ViewDoesNotExist: Tried index in module
> > intraweb.apps.timesheets.views. Error was: 'module' object has no
> > attribute 'Admin'
>
> > class models:
> >                 admin = models.Admin()
> > Seem to be the lines, is this a sub class that only the main class can
> > see.
> > How should I refer to it now?
>
> Admin is a very different system now than it used to be. So, you will
> need to get rid of all the admin=models.Admin() lines from your
> models, and start here anew:
>
> http://docs.djangoproject.com/en/dev/ref/contrib/admin/#ref-contrib-a...
>
> You probably want to keep a copy of your old model classes with the
> old admin definitions since you will want to reference them to try and
> replicate similar behaviour with your new admin code.
>
> -Rajesh D
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to