mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Fix fix migrate authtoken
This commit is contained in:
parent
4cdb6b2959
commit
d6391359f5
|
@ -174,16 +174,4 @@ The name of a parameter in the URL conf that may be used to provide a format suf
|
||||||
|
|
||||||
Default: `'format'`
|
Default: `'format'`
|
||||||
|
|
||||||
## REQUIRED_MIGRATIONS
|
|
||||||
|
|
||||||
This is a list of required migrations which are needed by the authtoken migration.
|
|
||||||
|
|
||||||
E.g.
|
|
||||||
|
|
||||||
(
|
|
||||||
('users', '0001_initial'),
|
|
||||||
)
|
|
||||||
|
|
||||||
Default: `'()'`
|
|
||||||
|
|
||||||
[cite]: http://www.python.org/dev/peps/pep-0020/
|
[cite]: http://www.python.org/dev/peps/pep-0020/
|
||||||
|
|
|
@ -17,8 +17,6 @@ else:
|
||||||
|
|
||||||
class Migration(SchemaMigration):
|
class Migration(SchemaMigration):
|
||||||
|
|
||||||
depends_on = api_settings.REQUIRED_MIGRATIONS
|
|
||||||
|
|
||||||
def forwards(self, orm):
|
def forwards(self, orm):
|
||||||
# Adding model 'Token'
|
# Adding model 'Token'
|
||||||
db.create_table('authtoken_token', (
|
db.create_table('authtoken_token', (
|
||||||
|
|
|
@ -76,9 +76,6 @@ DEFAULTS = {
|
||||||
'URL_FORMAT_OVERRIDE': 'format',
|
'URL_FORMAT_OVERRIDE': 'format',
|
||||||
|
|
||||||
'FORMAT_SUFFIX_KWARG': 'format',
|
'FORMAT_SUFFIX_KWARG': 'format',
|
||||||
|
|
||||||
# Authtoken
|
|
||||||
'REQUIRED_MIGRATIONS': (),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user