renumbering chapters >= 19
This commit is contained in:
5
24-class-metaprog/qualname/fakedjango.py
Normal file
5
24-class-metaprog/qualname/fakedjango.py
Normal file
@@ -0,0 +1,5 @@
|
||||
class models:
|
||||
class Model:
|
||||
"nothing to see here"
|
||||
class IntegerField:
|
||||
"nothing to see here"
|
||||
13
24-class-metaprog/qualname/models.py
Executable file
13
24-class-metaprog/qualname/models.py
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from fakedjango import models
|
||||
|
||||
class Ox(models.Model):
|
||||
horn_length = models.IntegerField()
|
||||
|
||||
class Meta:
|
||||
ordering = ['horn_length']
|
||||
verbose_name_plural = 'oxen'
|
||||
|
||||
print(Ox.Meta.__name__)
|
||||
print(Ox.Meta.__qualname__)
|
||||
Reference in New Issue
Block a user