-
Notifications
You must be signed in to change notification settings - Fork 55
add dynamic mode for menu & translation file update #18
base: master
Are you sure you want to change the base?
Conversation
|
This needs the sample put into the README or other documentation, please. I think the name 'dynamic' is a bit confusing too - might want to make it clear that the URL being used is a Django URL name rather than a static piece of text. |
|
I will add example tomorrow. |
|
hi,@rossp. document update. please note in document, I add version number is 0.1.10. should I change |
|
hi,@rossp. travis-ci looks broken. for this PR, I need some help. I played django since 1.7. I tried generate south migration,but it's fail. it's too old,sorry. can you generate south migration after this PR merged? |
| blank=True, | ||
| default=False, | ||
| help_text=_(u'Should this is a dynamic URL?') | ||
| help_text=_(u'Should Link URL need reverse?') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested help text: "Use URL resolver for this link? If False, this is treated as a literal URL.
menu/models.py
Outdated
| def __unicode__(self): | ||
| return u"%s %s. %s" % (self.menu.slug, self.order, self.title) | ||
|
|
||
| def __str__(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
str is not requried if we are also creating unicode.
README.rst
Outdated
| 1. ``pip install django-menu`` | ||
|
|
||
| 2. Add ``menu`` to your ``INSTALLED_APPS`` | ||
| 2. Add ``django.contrib.sites`` and ``menu`` to your ``INSTALLED_APPS`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is contrib.sites still required?
this pull request is add a feature that can make dynamic url and static url together.
e.g: