-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sheriff26 schrieb:
> hi all...
>
> I have a problem.
>
> After I edited the models.py,
> and added class Admin: pass,
> and off course in settings.py 'mysite.myproject'
>
> it don't apear in the admin page!! Why ??
> What I do wrong ?
>
> this is the code of models.py
>
> #### models.py
> from django.db import models
>
> import datetime
>
> class Cat(models.Model):
> name = models.CharField(max_length=200)
>
> class Admin:
> pass
>
> class Um(models.Model):
> um = models.CharField(max_length=3)
>
> class Produse(models.Model):
> name = models.CharField(max_length=200)
> cat = models.ForeignKey(Cat)
> desc = models.TextField()
> um = models.ForeignKey(Um)
> price = models.IntegerField()
> pub_date = models.DateTimeField()
>
>
looks like wrong indetendation to me.
try this:
class Cat(models.Model):
name = models.CharField(max_length=200)
class Admin:
pass
greetz Paul Rauch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iQIVAwUBRtUbfRG67lyyQrltAQJnrhAAmkdih65uC0lDFz37hfz+iax13GOMilvt
qLC4dH+WLFrlN0S8lAsh8cfVBxuGC2gWOh62oa0uwpyZDBFcsBrfCNTgiZkWa09C
XNHsPCw5rTxsh1AxZK/txKx/yjePbeLoXFZKGps/jL4rW7wADvChOmbuuOVKO+pc
UoIRFDdb43N+V1IS8jFgqFakaXBoBaFRaPz3MvKTZ8C7dyS+GYBL2BQOIxTpqLUj
rCy9E9ySIxUYQ4oeTkug+/72YDdO9zVepbN7ss8TIe6wKvNmTBQtQWlw/UW4CnD/
iEo4ByPrqG+ZAE7q7vGKDnmo8Zm1fHgbLsEexmvuAzoJEKv4n8yysirh4U6+sPnm
Fg81qamR46O5Srq20f4ZRN75LnEa3HV7+AaB9YQv0wtdutS/0NxlfKub3Or52Tfh
jsbKu7Up8oO/BFkxA4ohyLdz5RuhfY2ODus4fpKz/kk+C8K5tWUINqlRFglJhlQT
vKW8kyBkit7Qzvyf1PSH/s9UfGE9YRokbj+fQ4VbSTGUFQmnZdkURELLileyEaw1
w/U4kEKswsUsaJaoIWYBnYMbcyMNEJ/pfSfTrz9BAtnWNnPlP03ScojF/FrcSXEH
dEqLzK+yeH1LNnYEF0iOjqbwaRhcugRwuXCGxC5KbxyReqvaJ6x22jgBtBicFEqA
MkLkYc7m89g=
=L6eV
-----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---