| 290 | }}} |
| 291 | |
| 292 | If you're using the admin interface but aren't specifying any admin options, just put a {{{pass}}} in that inner class. |
| 293 | |
| 294 | Old: |
| 295 | {{{ |
| 296 | #!python |
| 297 | class Person(meta.Model): |
| 298 | first_name = meta.CharField(maxlength=30) |
| 299 | last_name = meta.CharField(maxlength=30) |
| 300 | class META: |
| 301 | admin = meta.Admin() |
| 302 | }}} |
| 303 | |
| 304 | New: |
| 305 | {{{ |
| 306 | #!python |
| 307 | class Person(models.Model): |
| 308 | first_name = models.CharField(maxlength=30) |
| 309 | last_name = models.CharField(maxlength=30) |
| 310 | class Admin: |
| 311 | pass |